Moved JS from template to Page.php to be combined.