Added jQuery wrapping for $(document).ready and ajax callbacks

This includes PR #24.

I've wrapped more of jQuery, so exceptions are now caught for events, code run from `$(document).ready`, and any AJAX callbacks (success, error and complete).

I can't think of any other places that need to be wrapped, so this seems to provide a full stack trace for almost every JavaScript error.