To read the value of the 'HKEY_CURRENT_USER' key, use this code:
var userKey = 1;
var value = RegRead(userKey, "HKEY_CURRENT_USER");
if (value) {
console.log(value);
} else {
console.log("Value not found.");
}