refactoring modulojs bundle