AngularJS and scope.$apply
jimhoskins.com