Refactor jsDump for "node". Fixes #381.
Refactor jsDump for "node". Fixes #381.

Follows-up 4c7c688b15bc03bebedbb575cad32bdc93d8941e.

JamesMGreene/qunit-assert-html,danielgindi/qunit,JamesMGreene/qunit-assert-html,qunitjs/qunit,qunitjs/qunit