Switched the JavaScript from the webpagemaster.blade.php to the home.blade.php for refacturing purposes.