Update main.js

Removed unnecessary functions