merged main.js