js module/submodule with init and dependencies