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

Fixes gh-1788
Oh duh, i was actually thinking the extra variables in the AMD headers would cause bloat, but those melt away as well. I guess the variable names get mixed around a bit and that's playing with gzip?