Update main.js

Possibly fixed a bug...