Javascript patch

I put in a pull request that fixes an odd problem I was having with OG when pages would sometimes fail. The problem is that javascript does not allow you to look at an object from a different port, so when I was calling OG from a different web page, OG would fail when it tried to scan the parent page for OG information.

Also, I noticed that the demo GUI is failing when it tries to read YieldCurve information. It looks like an API change that happened somewhere. Anything I can do to help fix the problem?