HTML5 Game Engine for a platform game