Is there a simple way to make a game loop in JavaScript? something like...
onTimerTick() { // update game state }
This page sums it up nicely: http://nokarma.org/2011/02/02/javascript-game-development-the-game-loop/index.html