Build: Don't assume the browser environment; smoke test on Node w/ jsdom

Fixes gh-1950
I trust your opinion more than mine here :)