moves insertion of clone into the body

jQuery can't accurately measure the width and height of elements in memory.
moves declaration of inline css to jQuery's .css method
nests copy of target and close button in separate div

If target was an image then the close button wouldn't appear since
images can't be nested in one another.
concatenates declaration of variables