Some additions for AngularJS