Updates for HTML tags and MathJax in iframes.
Merged jonas and hpl implementations of iframe.