Clean up the Git protocol switcher JS
Clean up the Git protocol switcher JS

Also re-adds the `.clone` updating that was removed accidentally.
Thanks, tests!

ttasanen/gitlabhq,mr-dxdy/gitlabhq,yatish27/gitlabhq,t-zuehlsdorff/gitlabhq,ttasanen/gitlabhq,dplarson/gitlabhq,LUMC/gitlabhq,louahola/gitlabhq,Soullivaneuh/gitlabhq,ttasanen/gitlabhq,dplarson/gitlabhq,htve/GitlabForChinese,yatish27/gitlabhq,mr-dxdy/gitlabhq,Datacom/gitlabhq,icedwater/gitlabhq,jrjang/gitlabhq,martijnvermaat/gitlabhq,koreamic/gitlabhq,jrjang/gitlab-ce,stoplightio/gitlabhq,louahola/gitlabhq,openwide-java/gitlabhq,martijnvermaat/gitlabhq,daiyu/gitlab-zh,iiet/iiet-git,openwide-java/gitlabhq,dwrensha/gitlabhq,Soullivaneuh/gitlabhq,duduribeiro/gitlabhq,allysonbarros/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,jirutka/gitlabhq,LUMC/gitlabhq,htve/GitlabForChinese,duduribeiro/gitlabhq,stoplightio/gitlabhq,SVArago/gitlabhq,dwrensha/gitlabhq,dreampet/gitlab,screenpages/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,louahola/gitlabhq,mr-dxdy/gitlabhq,darkrasid/gitlabhq,daiyu/gitlab-zh,darkrasid/gitlabhq,koreamic/gitlabhq,shinexiao/gitlabhq,dwrensha/gitlabhq,Soullivaneuh/gitlabhq,LUMC/gitlabhq,jrjang/gitlabhq,dreampet/gitlab,larryli/gitlabhq,Datacom/gitlabhq,louahola/gitlabhq,yatish27/gitlabhq,dreampet/gitlab,icedwater/gitlabhq,t-zuehlsdorff/gitlabhq,htve/GitlabForChinese,Datacom/gitlabhq,mrb/gitlabhq,Datacom/gitlabhq,mrb/gitlabhq,jirutka/gitlabhq,SVArago/gitlabhq,jrjang/gitlabhq,allysonbarros/gitlabhq,duduribeiro/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,mmkassem/gitlabhq,Soullivaneuh/gitlabhq,iiet/iiet-git,jrjang/gitlab-ce,daiyu/gitlab-zh,icedwater/gitlabhq,iiet/iiet-git,koreamic/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,yatish27/gitlabhq,jrjang/gitlab-ce,cui-liqiang/gitlab-ce,openwide-java/gitlabhq,screenpages/gitlabhq,SVArago/gitlabhq,screenpages/gitlabhq,allysonbarros/gitlabhq,htve/GitlabForChinese,allysonbarros/gitlabhq,jrjang/gitlab-ce,icedwater/gitlabhq,martijnvermaat/gitlabhq,larryli/gitlabhq,darkrasid/gitlabhq,t-zuehlsdorff/gitlabhq,axilleas/gitlabhq,larryli/gitlabhq,LUMC/gitlabhq,daiyu/gitlab-zh,screenpages/gitlabhq,martijnvermaat/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,openwide-java/gitlabhq,mrb/gitlabhq,mr-dxdy/gitlabhq,jrjang/gitlabhq,dplarson/gitlabhq,dwrensha/gitlabhq,duduribeiro/gitlabhq,mrb/gitlabhq,axilleas/gitlabhq,darkrasid/gitlabhq,cui-liqiang/gitlab-ce,mmkassem/gitlabhq,jirutka/gitlabhq,shinexiao/gitlabhq,cui-liqiang/gitlab-ce,ttasanen/gitlabhq,shinexiao/gitlabhq,SVArago/gitlabhq,cui-liqiang/gitlab-ce,shinexiao/gitlabhq,larryli/gitlabhq,koreamic/gitlabhq