Fixed most of the problems with node-webkit