Use JQuery originalEvent if present

I had the same issue as https://github.com/enginous/angular-oauth/issues/7, because I included JQuery before angular, so it replaces the event object with a JQuery event.

Same as this change: https://github.com/angular/angular.js/pull/3556