fix nodejs issues; create nodejs smoke test; unfortunately can't use existing qunit tests for nodejs with node-qunit