[jsinterp] Avoid double key lookup for setting new key