var app = require('app');
var BrowserWindow = require('browser-window');

var mainWindow = null;

app.on('window-all-closed', function() {
  if (process.platform != 'darwin')
    app.quit();
});

app.on('ready', function() {
  mainWindow = new BrowserWindow({width: 800, height: 600});
  mainWindow.loadUrl('file://' + __dirname + '/index.html');
  mainWindow.on('closed', function() {
    mainWindow = null;
  });
});

@@ -1,33 +1,153 @@
-var app = require('app');%0Avar
+const electron = require('electron')%0A// Module to control application life.%0Aconst app = electron.app%0A// Module to create native browser window.%0Aconst
  Bro
@@ -163,33 +163,30 @@
 w = 
-require('b
+electron.B
 rowser
--w
+W
 indow
-')
 ;%0A%0Av
@@ -418,10 +418,10 @@
 oadU
-rl
+RL
 ('fi

Upgrade to Electron 1.0 API