Add tern mode as a submodule