updated to main.js