Update main.js

Removed unneeded functions