Decoupling server from node-webkit