JSHint cleanup
Add a helper to define constants on an object and its .prototype
Add support for NodeFilter constants