Fix docs for error handling in NodeJS

As per #6.