Update and rename main.js to autoput.js