Update main.js

linted