on a the popup, div object is not always at childNodes[0], e.g. popup with youtube iframe can cause childNodes[0] to be #text and childNodes[1] to be the proper Div
typo fix
fixed spacing
Applied the fix from popup to the popover
changed for loop to $.trim(modal)
Merge pull request #101 from gregkeys/master

Typo fix in Dom plugin, Dynamic popup with iframe fix