Udpated main.js