added the scripts and updated the index.php