impact.js work

This contains the work on the HTML5 game.