Latest Update of main.js as complete