rem: var pairs = this.match(/^\??(.*)$/)[1].split('&'); 
add: var match = this.strip().match(/[^?]*$/)[0]; if (!match) return {}; var pairs = match.split('&'); 
context:   toQueryParams: function() {    var pairs = this.match(/^\??(.*)$/)[1].split('&');    return pairs.inject({}, function(params, pairString) {      var pair = pairString.split('=');      params[pair[0]] = pair[1];      return params;    });  },
meta: 2801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2801/7e143d2df37946a5416f0f043869478087652eb6/prototype.js/clean/examples/testcases/prototype.js