Correctly render iframes. Closes #100.

Code for detecting if browser enforced same origin policy for iframes
using different src protocols was not working correctly and an exception
was being thrown. This meant that some browsers were not able to
generate iframes for the examples.