$.ajax uses `type` not `method` to specify request method

Took me a while to figure this out, since I'm not jQuery user.
Merge pull request #2 from Darker/patch-2

$.ajax uses `type` not `method` to specify request method