REfactoring full width switcher for DRYness
turned into a proper jq plugin