using of js.html.* types.
using requestAnimationframe for loop.
added js build to hxml.