Remove submodule methods, update js style