remove old js
move init to views