Adding headers, based on http://stackoverflow.com/questions/1099787/jquery-ajax-post-sending-options-as-request-method-in-firefox