Why does function node not write the value to my global?

Why does that value not been read? Its sets value name not the value value...

Try [room]: { to let JS know it is a var not a property name.