Fix ajax.js to set the content mimetype when posting form data