Update errors.js

see above
Merge pull request #23 from olegdunkan/patch-3

Update errors.js