Typo with hiding the popup
Fix working in frames, closes #6