Fixed problem with window.top

When the iframe parent is framed by another application, the domains do not match. This causes the plugin to fail. Solution: use window.parent instead of window.top.