changes to main.js