adding submodule javascript