added Roger Wang for node-webkit