fixed some test cases: with node, we don't have a window object
fixed some test cases: with node, we don't have a window object

peopleware/js-ppwcode-vernacular-semantics-B,peopleware/js-ppwcode-vernacular-semantics-B,peopleware/js-ppwcode-vernacular-semantics-B