Edited Main.js