When javascript functions is not working on a page
If javascript is not working/loading on a page, open web developer tools on the browser and go to console check any errors is showed on. If you find any errors on console, then all the rest of the scripts won't work after the script which got error. This is because javascript stops executing of scripts if any error occured.
Other step to find the cause of not loading javascript: Inspect the page on right click button of the mouse and see if any script is coded into <head> tag. If any, just move the script to the bottom of the code before </body> tag.