Updated main.js to actually work

Updated current main.js with working version