remove useless functions from main.js