Don't throw errors in node.js

You shouldn't throw errors inside functions that use callbacks.  This pull request isn't extensively tested, but the existing tests pass and it's certainly a step in the right direction.