Updated node port with core changes

Merged Chandler Prall's changes since Jonas Gehring's nodejs port