Separated util functions and main functions in the main menu test, and accounted for that in the HTML file.  Object-ized the whole of main.js into the object MainMenu.