html5 JavaScript Game Tmplate