Fixed a bug that did not work in node.

When JavaScript engine find undefined variables, throw ReferenceError.
but undefined properties does not.
There is not "window" variable in node.
so, we must change variable to property.