Function 3 - Inserted Code in JavaScript file.

Inserted all the code needed for the main menu to work.