Get the node-webkit gui object in a nice-ish manner.
npm install webkit-gui
var gui = require('gui');
The actual code for retrieving the gui object in node-webkit is pretty long,
this should provide a much neater solution for retrieving that.