Update `freeGlobal` assignment to work in node-webkit.