added js to index.php