fixed two bugs. One where upon deletion of a wish, when the template would be reloaded the item dialog html would display and would not be turned into a jquery dialog. The 2nd bug was that an error was thrown when attempting to grant a wish