Update main.js

modification made