made menu.js be loaded by require.js, hopefully this fixes the null parent issue