refactoring client side js
removing old main.js