Made sure menu works everytime by adding .on(ready page:load. Was only working the first time you clicked on the menu and would make other links on the page inoperable