improvements and refactorization of each  binder related code
corrected some function signatures
checked that node is in fact a DOM element