Correcting Main.js