Remove dependency on jQuery.

This remove the dependency on jQuery, and uses angular.element() instead.

All methods have been replaced apart from .