final changes to main.js file.