Add compatibility with jQuery 2.0.

jQuery 2.0 listens for the `onload` event when performing AJAX requests.
Merge pull request #524 from adamvaughan/jquery-2.0

Add compatibility with jQuery 2.0.