I'm taking charge of a javascript webapp. It's very complex, and I'm having some trouble with syntax:

```
getThemeBaseUrl = function() {
  var customConfigPath = "./customer-configuration";                    
  if (parseQueryString().CustomConfigPath) {                           
    customConfigPath = parseQueryString().CustomConfigPath;
  }
  var clientId = parseQueryString().ClientId; 

  return customConfigPath + "/themes/" + clientId;
};

parseQueryString = function() {
  var result = {}, queryString = location.search.substring(1), re = /([^&=]+)=([^&]*)/g, m;
  while ( m = re.exec(queryString)) {
    result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
  }
  return result;
};

```

in particular `parseQueryString().CustomConfigPath` and the `var result = {}, queryString = location.search.substring(1), re = /([^&=]+)=([^&]*)/g, m;`

The first seems to be a sort of property access by the parseQueryString function. 

The second seems an array declaration, but without the Array() constructor. Also, the `m` value is recalled without the presumed array result in the while cycle.