added scripts to index.php