main.js not function fix