Update main.js

Typo in file. Wasn't working before