updated main & add localhost-main.js