Changed from $ jQuery to angular.element