sync with rogerwang/node-webkit