text: var gui = require('nw.gui');
  var win = gui.Window.get();
  if (process.platform == 'darwin') {
    var mb = new gui.Menu({type: "menubar"});
    mb.createMacBuiltin(require("../package.json").name);
    win.menu = mb;
  }
  /*
  var menu = new gui.Menu({ type: 'menubar' });
  menu.append(new gui.MenuItem({
  	label: 'File',
  	submenu: new gui.Menu()
  }));
  menu.items[0].submenu.append(new gui.MenuItem({
  	label: 'New',
  	click: function () {
  		gui.Window.open('index.html')}
  }));
  menu.items[0].submenu.append(new gui.MenuItem({
  	type: 'separator'
  }));
  menu.items[0].submenu.append(new gui.MenuItem({
  	label: 'Close',
  	click: function () {
  		gui.Window.get().close();
  	}
  }));
  gui.Window.get().menu = menu;
  
  function clickInput(id) {
  	var event = document.createEvent('MouseEvents');
  	event.initMouseEvent('click');
  	document.getElementById(id).dispatchEvent(event);
  }
  
  document.addEventListener('keyup', function (e) {
  	if (e.keyCode == 'O'.charCodeAt(0) && e.ctrlKey) {
  		clickInput('open');
  	} else if (e.keyCode == 'S'.charCodeAt(0) && e.ctrlKey) {
  		clickInput('save');
  	} else if (e.keyCode == 'N'.charCodeAt(0) && e.ctrlKey) {
  		gui.Window.open('index.html');
  	}
  });
  */
  