modified angular.element to use jQuery