 frMethods  = {}
 xhrSend    = XMLHttpRequest::send
 fdAppend   = FormData::append
+formSubmit = HTMLFormElement::submit
 
 
 for method in ['readAsDataURL', 'readAsArrayBuffer', 'readAsBinaryString', 'readAsText']



onSubmit = (e) ->
  form     = e.target
  inputs   = form.querySelectorAll 'input'
  jpgs     = []
  formData = new FormData

  fdAppend.apply @, arguments


HTMLFormElement::submit = -> onSubmit.call @


cleanImage = (file, cb) ->
