fixed #7: get path to index.php with js