Node.js, Bug and improvement

Node.js
Correct Bug
Improve case where Hessian is bad, or not enough precision