Created some boolean checks to see which page is loaded and what functions should be called on that page from master.js