Revert "Patched the javascript, now uses window.parent instead of window.top. This prevents errors if there is another iframe around the window.parent."

This reverts commit 0c464f72102759e066a68a3372aa3b3a3d395860.
fixed formatting for patch. "Patched the javascript, now uses window.parent instead of window.top. This prevents errors if there is another iframe around the window.parent."