JS: Better errors for Node exceptions