Improve the remove() method using Late Static Binding

Hi, Matt.

This resolves problems when writing your own custom DOMQuery classes.