Fixing javascript to use the new root.