Finish basic javascript for menu page