Removed unused functions form main.js