Changed main.js to remove xxx() function