1. Gamemaker uses GML, not Javascript.
2. Open "rm_main_menu". In the Inspector, click on "Instance Creation Order". Make sure "obj_menu_background" is above "obj_main_menu_ui" on the list.
Sounds like a palette issue https://platformfighterengine.github.io/#/tutorialB6