added changes for node-webkit