Loading spinner directive for AngularJS