Fix running on node-webkit