using of js.html.* types.
using requestAnimationframe for loop.
added js build to hxml.
Merge pull request #2 from tong/master

js demo update