js version of the module.