Update main.js

Removed copied over codes