A JavaScript observer pattern mixin that caters to Angular.js