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

Took me a while to figure this out, since I'm not jQuery user.