for (var i=0,ii=keylist.length; i<ii; i++) {
          retValue[keylist[i]] = result[i];
        }