working around node-webkit issue

See https://github.com/rogerwang/node-webkit/issues/2320