Added data.js, commented extra code in main.js, and modified index.php