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

Fixes gh-1788
No, if transpiled correctly, this is a simple var statement in the built file. It should have no effect on size.