Cleaned up DomQuery.js a bit and started adding unit tests to it.