Delete MyApp.js, create separate MainMenuLayer and GameLayer instead.
local ide files