Improve code to remove security exceptions

iframes from other domains will throw a security exception.  Facebook
creates iframes and they were causing errors