first implementation of melonjs