merged platform.js into menu.js