updated with melonJS 1.0.2