Update node.js bindings to support all node.js versions

this fix is backwards compatible and enables users to use node-db with the latest versions of node