support AngularJS 1.3