Fix path to index.php in frontend.js