Extensions for use with AngularJS