Moved data.php and corrected url in index.js