Code org

Hey @fb55,

I've taken your advice from #4 and improved the organization of this project's code. I've incorporated JSHint according to our work in `DomHandler`, and I've re-factored the tests to use Mocha. The tests are more verbose, but they are also much easier to read. I think this is important to encourage simpler contributions and help understand where coverage is lacking.