Update request.js

Catch error from FormData object and emit it as error event.