It would be nicer to pass in the `data:` option rather than constructing a url with the query string. For a start, it will make sure everything is encoded properly.