Hook jQuery AJAX events because that's what Tumblr uses.
Also make the event code safe when the response doesn't contain <li> tags