IImplemented postMessage() solution for passing simulation code to the world frame to resolve Chrome's same domain issue.