bindings and js redone to angular