moved all javascript from home.php to a js file in the assets/js folder