refactor module detection
refactor module detection

josephfrazier/browser-extension,OctoLinker/browser-extension,josephfrazier/browser-extension,OctoLinker/browser-extension,josephfrazier/browser-extension,OctoLinker/browser-extension