docs: function hashToString(hash) {
          var keyValuePairs = [];
          angular.forEach(hash, function (value, key) {
              keyValuePairs.push(key + "=" + value);
          });
          var params = keyValuePairs.join("&");
          return encodeURI(params);
      }