Fixed up a little bit for node-webkit