Removed the error.js and put functionality into the dispatcher.js file