AngularJs loader directive