Updated success callbacks for gallery.panel.js and gallery.dialog.js - no longer need to save xhr ahead of success.
Tested and seems to work well, even with watermarks on Chrome (previously an issue).
Formatting: cleaned up extra lines, whitespaces, converted tabs to spaces, etc.
Merge pull request #137 from shadlaws/jquery_19_success_xhr

Updated success callbacks for gallery.panel.js and gallery.dialog.js