Fixed main.js

Thnx Nate