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

Fixes gh-1950
@gibson042 OK, that's what I'll do.