Support for JS sharing.