Aniframes.js is a quick library I have put together to help you create animations and / or games in javascript.
Note that the updater runs before the renderer.
var myGame = new aniframes(),
canvas = document.querySelector("canvas");
myGame.set_canvas(canvas);