From http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery