Changed window.top to window.parent

When remote.html is injected into a sandboxed iFrame, "window.top" is
not accessible. Using "window.parent" instead resolves this problem.