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

Fixes gh-1950
Yeah, the minified non-gzipped size is actually **smaller** after this PR. gzip magic.