Use window.parent instead of window.top so that nested iframes work. Closes #59.