Seperated the JS script and index.php