JS API
Game 2d - main.js update.