Simple Game Engine to get familiar with HTML5