HTTPS clone URL
Subversion checkout URL
I'm looking for ideas to refactor the below code into something more understandable and less error prone and ugly. Some pages in the application need one off java script included to make a feature work, but it is silly to run the java script on every other page. Any ideas?