AngularJS improvements