switched to main.js