Update main.js

relinted