Adding a few view tests that run inside jsdom

I'm not sure this is a great idea, but whatever. I'll park it here and think about it or something.

If accepted, this would be a potential way to write some automated tests **in mocha, on the server** for code that relies on a browser environment to run.