resolves an issue where jQuery.outerWidth() reports 0 for unappended html

first need to append popup to the document so that jQuery.outerWidth() can calculate popup's outer width, otherwise it returns 0