Initial conversion from Safari to node-webkit