a javascript library for module generating