main.js issues