Add $().contents() api

Fix modal windows replicating dom nodes and NOT moving them.