remove all $ reference. use angular.element in the future.