Update main.js

deleted useless parts