Use angular.element wrapper to remove the element (to support older browsers).