fix safari 5.1.7 issue with pjax.submit
older versions of safari return an empty string when method attribute is not set on a form (see https://gist.github.com for a live demo of the bug)