Update errors.js

see above