Changes to allow the javascript and container page to be at different context roots.