Updated syntax for Angular 1.3.7