Event recorder for AngularJS