Removed some bogus jQuery code from modal dialogs.