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

Refs gh-1788
@denis-sokolov claims it's a niche so I tend to agree. :)