delete dead js
refactoring