seperated javascript from index.php