Compatibility with Angular 1.3