main.js now works