improvements for the module JS