moved js to index.php