Update and rename main.js to invoke.js