Document NodeJS error callback
Merge pull request #568 from guybedford/master

NodeJS optimization error callback