HTML5 and CoffeeScript game