Improve error handling under Node.js

Now we include the stack trace with the error message. Thanks to
@felixhayashi for the suggestion.