done with js improvements
removed file and updated js
refactored javascript in backend