Main.js corrected