Fix main.js calling methods