more changes to main.js