Fix submodule JavaScript