Shilpa Sayura used a java script based online Sinhala Input Method supporting Kaputa and Wijeysekara Keyboards.
They use XML pages that has embedded java script.
This website helps the designers and clients understanding HTML and java script as well as developing their website.
(Proper sound of pinyin from zdic.net with sounds, require java script turned on)
Follow this link to learn how to enable java script in Firefox.
It would be lovely to be able to dump java script completely.