Update and rename main.js to UI.js