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

Fixes gh-1788
Wow, didn't we pull out something similar for framed docs? There are no new bugs it seems.