adding Errors.js file