Move JS into submodule