fixed js bug when inside an iframe
Merge pull request #39 from egrajeda/master

Clicking an item in the panel frame wasn't working when inside an <iframe>