Update main.js

is it correct?