rename jQuery variables to $ prefix
extract wiki.dialog to file