code: function (libType) {
      function toVersion(acc, pair) {
        var splitPair = pair.split('=');
        return splitPair[0] === libType && rx.test(splitPair[1]) ? splitPair[1] : acc;
      }
      return location.search.substr(1).split('&').reduce(toVersion, 'latest');
    }
docs: :: String, String -> String