Adding support for $off in Angular.js