got the JS to only load on the page that it's needed