code: function parseQueryMap(query) {
    var map = {};
    parseQueryString(query, function(key, value) {
      map[key] = value;
    });
    return map;
  }
docs: Parses a query string and returns a map of key-value pairs.
  @param {string} query Query string (without the leading question mark).
  @return {Object} Map of key-value pairs.