Update main.js

Removing some unnecessary code.