Using EasyAnimationFrame.js you can make html5 canvas or html animations having the complete control over the framerate.