Platform game engine built in javascript