adding function binding to jangular