http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/navbar/navbar.controller.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/navbar/navbar.controller.js 
b/zeppelin-web/src/components/navbar/navbar.controller.js
index 139328e..9fb5db2 100644
--- a/zeppelin-web/src/components/navbar/navbar.controller.js
+++ b/zeppelin-web/src/components/navbar/navbar.controller.js
@@ -12,237 +12,237 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').controller('NavCtrl', NavCtrl)
+angular.module('zeppelinWebApp').controller('NavCtrl', NavCtrl);
 
-function NavCtrl ($scope, $rootScope, $http, $routeParams, $location,
+function NavCtrl($scope, $rootScope, $http, $routeParams, $location,
                  noteListFactory, baseUrlSrv, websocketMsgSrv,
                  arrayOrderingSrv, searchService, TRASH_FOLDER_ID) {
-  'ngInject'
-
-  let vm = this
-  vm.arrayOrderingSrv = arrayOrderingSrv
-  vm.connected = websocketMsgSrv.isConnected()
-  vm.isActive = isActive
-  vm.logout = logout
-  vm.notes = noteListFactory
-  vm.search = search
-  vm.searchForm = searchService
-  vm.showLoginWindow = showLoginWindow
-  vm.TRASH_FOLDER_ID = TRASH_FOLDER_ID
-  vm.isFilterNote = isFilterNote
-  vm.numberOfNotesDisplayed = 10
-
-  $scope.query = {q: ''}
-
-  initController()
-
-  function getZeppelinVersion () {
+  'ngInject';
+
+  let vm = this;
+  vm.arrayOrderingSrv = arrayOrderingSrv;
+  vm.connected = websocketMsgSrv.isConnected();
+  vm.isActive = isActive;
+  vm.logout = logout;
+  vm.notes = noteListFactory;
+  vm.search = search;
+  vm.searchForm = searchService;
+  vm.showLoginWindow = showLoginWindow;
+  vm.TRASH_FOLDER_ID = TRASH_FOLDER_ID;
+  vm.isFilterNote = isFilterNote;
+  vm.numberOfNotesDisplayed = 10;
+
+  $scope.query = {q: ''};
+
+  initController();
+
+  function getZeppelinVersion() {
     $http.get(baseUrlSrv.getRestApiBase() + '/version').success(
-      function (data, status, headers, config) {
-        $rootScope.zeppelinVersion = data.body.version
+      function(data, status, headers, config) {
+        $rootScope.zeppelinVersion = data.body.version;
       }).error(
-      function (data, status, headers, config) {
-        console.log('Error %o %o', status, data.message)
-      })
+      function(data, status, headers, config) {
+        console.log('Error %o %o', status, data.message);
+      });
   }
 
-  function initController () {
-    $scope.isDrawNavbarNoteList = false
-    angular.element('#notebook-list').perfectScrollbar({suppressScrollX: true})
+  function initController() {
+    $scope.isDrawNavbarNoteList = false;
+    angular.element('#notebook-list').perfectScrollbar({suppressScrollX: 
true});
 
-    angular.element(document).click(function () {
-      $scope.query.q = ''
-    })
+    angular.element(document).click(function() {
+      $scope.query.q = '';
+    });
 
-    getZeppelinVersion()
-    loadNotes()
+    getZeppelinVersion();
+    loadNotes();
   }
 
-  function isFilterNote (note) {
+  function isFilterNote(note) {
     if (!$scope.query.q) {
-      return true
+      return true;
     }
 
-    let noteName = note.name
+    let noteName = note.name;
     if (noteName.toLowerCase().indexOf($scope.query.q.toLowerCase()) > -1) {
-      return true
+      return true;
     }
-    return false
+    return false;
   }
 
-  function isActive (noteId) {
-    return ($routeParams.noteId === noteId)
+  function isActive(noteId) {
+    return ($routeParams.noteId === noteId);
   }
 
-  function listConfigurations () {
-    websocketMsgSrv.listConfigurations()
+  function listConfigurations() {
+    websocketMsgSrv.listConfigurations();
   }
 
-  function loadNotes () {
-    websocketMsgSrv.getNoteList()
+  function loadNotes() {
+    websocketMsgSrv.getNoteList();
   }
 
-  function getHomeNote () {
-    websocketMsgSrv.getHomeNote()
+  function getHomeNote() {
+    websocketMsgSrv.getHomeNote();
   }
 
   function logout() {
-    let logoutURL = baseUrlSrv.getRestApiBase() + '/login/logout'
+    let logoutURL = baseUrlSrv.getRestApiBase() + '/login/logout';
 
-    $http.post(logoutURL).then(function () {}, function (response) {
+    $http.post(logoutURL).then(function() {}, function(response) {
       if (response.data) {
-        let res = angular.fromJson(response.data).body
+        let res = angular.fromJson(response.data).body;
         if (res['redirectURL']) {
           if (res['isLogoutAPI'] === 'true') {
-            $http.get(res['redirectURL']).then(function () {
-            }, function () {
-              window.location = baseUrlSrv.getBase()
-            })
+            $http.get(res['redirectURL']).then(function() {
+            }, function() {
+              window.location = baseUrlSrv.getBase();
+            });
           } else {
-            window.location.href = res['redirectURL'] + window.location.href
+            window.location.href = res['redirectURL'] + window.location.href;
           }
-          return undefined
+          return undefined;
         }
       }
 
       // force authcBasic (if configured) to logout
       if (detectIE()) {
-        let outcome
+        let outcome;
         try {
-          outcome = document.execCommand('ClearAuthenticationCache')
+          outcome = document.execCommand('ClearAuthenticationCache');
         } catch (e) {
-          console.log(e)
+          console.log(e);
         }
         if (!outcome) {
           // Let's create an xmlhttp object
-          outcome = (function (x) {
+          outcome = (function(x) {
             if (x) {
               // the reason we use "random" value for password is
               // that browsers cache requests. changing
               // password effectively behaves like cache-busing.
               x.open('HEAD', location.href, true, 'logout',
-                (new Date()).getTime().toString())
-              x.send('')
+                (new Date()).getTime().toString());
+              x.send('');
               // x.abort()
-              return 1 // this is **speculative** "We are done."
+              return 1; // this is **speculative** "We are done."
             } else {
               // eslint-disable-next-line no-useless-return
-              return
+              return;
             }
           })(window.XMLHttpRequest ? new window.XMLHttpRequest()
             // eslint-disable-next-line no-undef
-            : (window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : 
u))
+            : (window.ActiveXObject ? new ActiveXObject('Microsoft.XMLHTTP') : 
u));
         }
         if (!outcome) {
           let m = 'Your browser is too old or too weird to support log out 
functionality. Close all windows and ' +
-            'restart the browser.'
-          alert(m)
+            'restart the browser.';
+          alert(m);
         }
       } else {
         // for firefox and safari
-        logoutURL = logoutURL.replace('//', '//false:false@')
+        logoutURL = logoutURL.replace('//', '//false:false@');
       }
 
-      $http.post(logoutURL).error(function () {
-        $rootScope.userName = ''
-        $rootScope.ticket.principal = ''
-        $rootScope.ticket.screenUsername = ''
-        $rootScope.ticket.ticket = ''
-        $rootScope.ticket.roles = ''
+      $http.post(logoutURL).error(function() {
+        $rootScope.userName = '';
+        $rootScope.ticket.principal = '';
+        $rootScope.ticket.screenUsername = '';
+        $rootScope.ticket.ticket = '';
+        $rootScope.ticket.roles = '';
         BootstrapDialog.show({
-          message: 'Logout Success'
-        })
-        setTimeout(function () {
-          window.location = baseUrlSrv.getBase()
-        }, 1000)
-      })
-    })
+          message: 'Logout Success',
+        });
+        setTimeout(function() {
+          window.location = baseUrlSrv.getBase();
+        }, 1000);
+      });
+    });
   }
 
   function detectIE() {
-    let ua = window.navigator.userAgent
+    let ua = window.navigator.userAgent;
 
-    let msie = ua.indexOf('MSIE ')
+    let msie = ua.indexOf('MSIE ');
     if (msie > 0) {
       // IE 10 or older => return version number
-      return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10)
+      return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
     }
 
-    let trident = ua.indexOf('Trident/')
+    let trident = ua.indexOf('Trident/');
     if (trident > 0) {
       // IE 11 => return version number
-      let rv = ua.indexOf('rv:')
-      return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10)
+      let rv = ua.indexOf('rv:');
+      return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
     }
 
-    let edge = ua.indexOf('Edge/')
+    let edge = ua.indexOf('Edge/');
     if (edge > 0) {
       // Edge (IE 12+) => return version number
-      return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10)
+      return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
     }
 
     // other browser
-    return false
+    return false;
   }
 
-  function search (searchTerm) {
-    $location.path('/search/' + searchTerm)
+  function search(searchTerm) {
+    $location.path('/search/' + searchTerm);
   }
 
-  function showLoginWindow () {
-    setTimeout(function () {
-      angular.element('#userName').focus()
-    }, 500)
+  function showLoginWindow() {
+    setTimeout(function() {
+      angular.element('#userName').focus();
+    }, 500);
   }
 
   /*
    ** $scope.$on functions below
    */
 
-  $scope.$on('setNoteMenu', function (event, notes) {
-    noteListFactory.setNotes(notes)
-    initNotebookListEventListener()
-  })
+  $scope.$on('setNoteMenu', function(event, notes) {
+    noteListFactory.setNotes(notes);
+    initNotebookListEventListener();
+  });
 
-  $scope.$on('setConnectedStatus', function (event, param) {
-    vm.connected = param
-  })
+  $scope.$on('setConnectedStatus', function(event, param) {
+    vm.connected = param;
+  });
 
-  $scope.$on('loginSuccess', function (event, param) {
-    $rootScope.ticket.screenUsername = $rootScope.ticket.principal
-    listConfigurations()
-    loadNotes()
-    getHomeNote()
-  })
+  $scope.$on('loginSuccess', function(event, param) {
+    $rootScope.ticket.screenUsername = $rootScope.ticket.principal;
+    listConfigurations();
+    loadNotes();
+    getHomeNote();
+  });
 
   /*
    ** Performance optimization for Browser Render.
    */
-  function initNotebookListEventListener () {
-    angular.element(document).ready(function () {
-      angular.element('.notebook-list-dropdown').on('show.bs.dropdown', 
function () {
-        $scope.isDrawNavbarNoteList = true
-      })
-
-      angular.element('.notebook-list-dropdown').on('hide.bs.dropdown', 
function () {
-        $scope.isDrawNavbarNoteList = false
-      })
-    })
+  function initNotebookListEventListener() {
+    angular.element(document).ready(function() {
+      angular.element('.notebook-list-dropdown').on('show.bs.dropdown', 
function() {
+        $scope.isDrawNavbarNoteList = true;
+      });
+
+      angular.element('.notebook-list-dropdown').on('hide.bs.dropdown', 
function() {
+        $scope.isDrawNavbarNoteList = false;
+      });
+    });
   }
 
-  $scope.loadMoreNotes = function () {
-    vm.numberOfNotesDisplayed += 10
-  }
+  $scope.loadMoreNotes = function() {
+    vm.numberOfNotesDisplayed += 10;
+  };
 
-  $scope.calculateTooltipPlacement = function (note) {
+  $scope.calculateTooltipPlacement = function(note) {
     if (note !== undefined && note.name !== undefined) {
-      let length = note.name.length
+      let length = note.name.length;
       if (length < 2) {
-        return 'top-left'
+        return 'top-left';
       } else if (length > 7) {
-        return 'top-right'
+        return 'top-right';
       }
     }
-    return 'top'
-  }
+    return 'top';
+  };
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/navbar/navbar.controller.test.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/navbar/navbar.controller.test.js 
b/zeppelin-web/src/components/navbar/navbar.controller.test.js
index bf29b84..f4bb3bf 100644
--- a/zeppelin-web/src/components/navbar/navbar.controller.test.js
+++ b/zeppelin-web/src/components/navbar/navbar.controller.test.js
@@ -1,18 +1,18 @@
-describe('Controller: NavCtrl', function () {
+describe('Controller: NavCtrl', function() {
   // load the controller's module
-  beforeEach(angular.mock.module('zeppelinWebApp'))
-  let NavCtrl
-  let scope
+  beforeEach(angular.mock.module('zeppelinWebApp'));
+  let NavCtrl;
+  let scope;
   // Initialize the controller and a mock scope
-  beforeEach(inject(function ($controller, $rootScope) {
-    scope = $rootScope.$new()
+  beforeEach(inject(function($controller, $rootScope) {
+    scope = $rootScope.$new();
     NavCtrl = $controller('NavCtrl', {
-      $scope: scope
-    })
+      $scope: scope,
+    });
 
-    it('NavCtrl to toBeDefined', function () {
-      expect(NavCtrl).toBeDefined()
-      expect(NavCtrl.loadNotes).toBeDefined()
-    })
-  }))
-})
+    it('NavCtrl to toBeDefined', function() {
+      expect(NavCtrl).toBeDefined();
+      expect(NavCtrl.loadNotes).toBeDefined();
+    });
+  }));
+});

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/ng-enter/ng-enter.directive.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/ng-enter/ng-enter.directive.js 
b/zeppelin-web/src/components/ng-enter/ng-enter.directive.js
index 98bc067..a4d9219 100644
--- a/zeppelin-web/src/components/ng-enter/ng-enter.directive.js
+++ b/zeppelin-web/src/components/ng-enter/ng-enter.directive.js
@@ -12,19 +12,19 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').directive('ngEnter', NgEnterDirective)
+angular.module('zeppelinWebApp').directive('ngEnter', NgEnterDirective);
 
 function NgEnterDirective() {
-  return function (scope, element, attrs) {
-    element.bind('keydown keypress', function (event) {
+  return function(scope, element, attrs) {
+    element.bind('keydown keypress', function(event) {
       if (event.which === 13) {
         if (!event.shiftKey) {
-          scope.$apply(function () {
-            scope.$eval(attrs.ngEnter)
-          })
+          scope.$apply(function() {
+            scope.$eval(attrs.ngEnter);
+          });
         }
-        event.preventDefault()
+        event.preventDefault();
       }
-    })
-  }
+    });
+  };
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/ng-enter/ng-enter.directive.test.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/ng-enter/ng-enter.directive.test.js 
b/zeppelin-web/src/components/ng-enter/ng-enter.directive.test.js
index 49f97cc..6285b59 100644
--- a/zeppelin-web/src/components/ng-enter/ng-enter.directive.test.js
+++ b/zeppelin-web/src/components/ng-enter/ng-enter.directive.test.js
@@ -1,19 +1,19 @@
-describe('Directive: ngEnter', function () {
+describe('Directive: ngEnter', function() {
   // load the directive's module
-  beforeEach(angular.mock.module('zeppelinWebApp'))
+  beforeEach(angular.mock.module('zeppelinWebApp'));
 
-  let element
-  let scope
+  let element;
+  let scope;
 
-  beforeEach(inject(function ($rootScope) {
-    scope = $rootScope.$new()
-  }))
+  beforeEach(inject(function($rootScope) {
+    scope = $rootScope.$new();
+  }));
 
-  it('should be define', inject(function ($compile) {
-    element = angular.element('<ng-enter></ng-enter>')
-    element = $compile(element)(scope)
-    expect(element.text()).toBeDefined()
-  }))
+  it('should be define', inject(function($compile) {
+    element = angular.element('<ng-enter></ng-enter>');
+    element = $compile(element)(scope);
+    expect(element.text()).toBeDefined();
+  }));
 
   // Test the rest of function in ngEnter
   /*  it('should make hidden element visible', inject(function ($compile) {
@@ -21,4 +21,4 @@ describe('Directive: ngEnter', function () {
       element = $compile(element)(scope);
       expect(element.text()).toBe('this is the ngEnter directive');
     })); */
-})
+});

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/ng-escape/ng-escape.directive.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/ng-escape/ng-escape.directive.js 
b/zeppelin-web/src/components/ng-escape/ng-escape.directive.js
index a3d35ea..bdb7636 100644
--- a/zeppelin-web/src/components/ng-escape/ng-escape.directive.js
+++ b/zeppelin-web/src/components/ng-escape/ng-escape.directive.js
@@ -12,17 +12,17 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').directive('ngEscape', NgEscapeDirective)
+angular.module('zeppelinWebApp').directive('ngEscape', NgEscapeDirective);
 
 function NgEscapeDirective() {
-  return function (scope, element, attrs) {
-    element.bind('keydown keyup', function (event) {
+  return function(scope, element, attrs) {
+    element.bind('keydown keyup', function(event) {
       if (event.which === 27) {
-        scope.$apply(function () {
-          scope.$eval(attrs.ngEscape)
-        })
-        event.preventDefault()
+        scope.$apply(function() {
+          scope.$eval(attrs.ngEscape);
+        });
+        event.preventDefault();
       }
-    })
-  }
+    });
+  };
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-action/note-action.service.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-action/note-action.service.js 
b/zeppelin-web/src/components/note-action/note-action.service.js
index 8e00c0f..d4bf6f0 100644
--- a/zeppelin-web/src/components/note-action/note-action.service.js
+++ b/zeppelin-web/src/components/note-action/note-action.service.js
@@ -12,172 +12,172 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').service('noteActionService', 
noteActionService)
+angular.module('zeppelinWebApp').service('noteActionService', 
noteActionService);
 
 function noteActionService(websocketMsgSrv, $location, noteRenameService, 
noteListFactory) {
-  'ngInject'
+  'ngInject';
 
-  this.moveNoteToTrash = function (noteId, redirectToHome) {
+  this.moveNoteToTrash = function(noteId, redirectToHome) {
     BootstrapDialog.confirm({
       closable: true,
       title: 'Move this note to trash?',
       message: 'This note will be moved to <strong>trash</strong>.',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.moveNoteToTrash(noteId)
+          websocketMsgSrv.moveNoteToTrash(noteId);
           if (redirectToHome) {
-            $location.path('/')
+            $location.path('/');
           }
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.moveFolderToTrash = function (folderId) {
+  this.moveFolderToTrash = function(folderId) {
     BootstrapDialog.confirm({
       closable: true,
       title: 'Move this folder to trash?',
       message: 'This folder will be moved to <strong>trash</strong>.',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.moveFolderToTrash(folderId)
+          websocketMsgSrv.moveFolderToTrash(folderId);
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.removeNote = function (noteId, redirectToHome) {
+  this.removeNote = function(noteId, redirectToHome) {
     BootstrapDialog.confirm({
       type: BootstrapDialog.TYPE_WARNING,
       closable: true,
       title: 'WARNING! This note will be removed permanently',
       message: 'This cannot be undone. Are you sure?',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.deleteNote(noteId)
+          websocketMsgSrv.deleteNote(noteId);
           if (redirectToHome) {
-            $location.path('/')
+            $location.path('/');
           }
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.removeFolder = function (folderId) {
+  this.removeFolder = function(folderId) {
     BootstrapDialog.confirm({
       type: BootstrapDialog.TYPE_WARNING,
       closable: true,
       title: 'WARNING! This folder will be removed permanently',
       message: 'This cannot be undone. Are you sure?',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.removeFolder(folderId)
+          websocketMsgSrv.removeFolder(folderId);
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.restoreAll = function () {
+  this.restoreAll = function() {
     BootstrapDialog.confirm({
       closable: true,
       title: 'Are you sure want to restore all notes in the trash?',
       message: 'Folders and notes in the trash will be ' +
       '<strong>merged</strong> into their original position.',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.restoreAll()
+          websocketMsgSrv.restoreAll();
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.emptyTrash = function () {
+  this.emptyTrash = function() {
     BootstrapDialog.confirm({
       type: BootstrapDialog.TYPE_WARNING,
       closable: true,
       title: 'WARNING! Notes under trash will be removed permanently',
       message: 'This cannot be undone. Are you sure?',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.emptyTrash()
+          websocketMsgSrv.emptyTrash();
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.clearAllParagraphOutput = function (noteId) {
+  this.clearAllParagraphOutput = function(noteId) {
     BootstrapDialog.confirm({
       closable: true,
       title: '',
       message: 'Do you want to clear all output?',
-      callback: function (result) {
+      callback: function(result) {
         if (result) {
-          websocketMsgSrv.clearAllParagraphOutput(noteId)
+          websocketMsgSrv.clearAllParagraphOutput(noteId);
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  this.renameNote = function (noteId, notePath) {
+  this.renameNote = function(noteId, notePath) {
     noteRenameService.openRenameModal({
       title: 'Rename note',
       oldName: notePath,
-      callback: function (newName) {
-        websocketMsgSrv.renameNote(noteId, newName)
-      }
-    })
-  }
+      callback: function(newName) {
+        websocketMsgSrv.renameNote(noteId, newName);
+      },
+    });
+  };
 
-  this.renameFolder = function (folderId) {
+  this.renameFolder = function(folderId) {
     noteRenameService.openRenameModal({
       title: 'Rename folder',
       oldName: folderId,
-      callback: function (newName) {
-        let newFolderId = normalizeFolderId(newName)
+      callback: function(newName) {
+        let newFolderId = normalizeFolderId(newName);
         if (_.has(noteListFactory.flatFolderMap, newFolderId)) {
           BootstrapDialog.confirm({
             type: BootstrapDialog.TYPE_WARNING,
             closable: true,
             title: 'WARNING! The folder will be MERGED',
             message: 'The folder will be merged into <strong>' + newFolderId + 
'</strong>. Are you sure?',
-            callback: function (result) {
+            callback: function(result) {
               if (result) {
-                websocketMsgSrv.renameFolder(folderId, newFolderId)
+                websocketMsgSrv.renameFolder(folderId, newFolderId);
               }
-            }
-          })
+            },
+          });
         } else {
-          websocketMsgSrv.renameFolder(folderId, newFolderId)
+          websocketMsgSrv.renameFolder(folderId, newFolderId);
         }
-      }
-    })
-  }
+      },
+    });
+  };
 
-  function normalizeFolderId (folderId) {
-    folderId = folderId.trim()
+  function normalizeFolderId(folderId) {
+    folderId = folderId.trim();
 
     while (folderId.indexOf('\\') > -1) {
-      folderId = folderId.replace('\\', '/')
+      folderId = folderId.replace('\\', '/');
     }
 
     while (folderId.indexOf('///') > -1) {
-      folderId = folderId.replace('///', '/')
+      folderId = folderId.replace('///', '/');
     }
 
-    folderId = folderId.replace('//', '/')
+    folderId = folderId.replace('//', '/');
 
     if (folderId === '/') {
-      return '/'
+      return '/';
     }
 
     if (folderId[0] === '/') {
-      folderId = folderId.substring(1)
+      folderId = folderId.substring(1);
     }
 
     if (folderId.slice(-1) === '/') {
-      folderId = folderId.slice(0, -1)
+      folderId = folderId.slice(0, -1);
     }
 
-    return folderId
+    return folderId;
   }
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-create/note-create.controller.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-create/note-create.controller.js 
b/zeppelin-web/src/components/note-create/note-create.controller.js
index c999c20..a2eb5a6 100644
--- a/zeppelin-web/src/components/note-create/note-create.controller.js
+++ b/zeppelin-web/src/components/note-create/note-create.controller.js
@@ -12,95 +12,95 @@
  * limitations under the License.
  */
 
-import './note-create.css'
+import './note-create.css';
 
-angular.module('zeppelinWebApp').controller('NoteCreateCtrl', NoteCreateCtrl)
+angular.module('zeppelinWebApp').controller('NoteCreateCtrl', NoteCreateCtrl);
 
-function NoteCreateCtrl ($scope, noteListFactory, $routeParams, 
websocketMsgSrv) {
-  'ngInject'
+function NoteCreateCtrl($scope, noteListFactory, $routeParams, 
websocketMsgSrv) {
+  'ngInject';
 
-  let vm = this
-  vm.clone = false
-  vm.notes = noteListFactory
-  vm.websocketMsgSrv = websocketMsgSrv
-  $scope.note = {}
-  $scope.interpreterSettings = {}
-  $scope.note.defaultInterpreter = null
+  let vm = this;
+  vm.clone = false;
+  vm.notes = noteListFactory;
+  vm.websocketMsgSrv = websocketMsgSrv;
+  $scope.note = {};
+  $scope.interpreterSettings = {};
+  $scope.note.defaultInterpreter = null;
 
-  vm.createNote = function () {
+  vm.createNote = function() {
     if (!vm.clone) {
-      let defaultInterpreterId = ''
+      let defaultInterpreterId = '';
       if ($scope.note.defaultInterpreter !== null) {
-        defaultInterpreterId = $scope.note.defaultInterpreter.id
+        defaultInterpreterId = $scope.note.defaultInterpreter.id;
       }
-      vm.websocketMsgSrv.createNotebook($scope.note.notename, 
defaultInterpreterId)
-      $scope.note.defaultInterpreter = $scope.interpreterSettings[0]
+      vm.websocketMsgSrv.createNotebook($scope.note.notename, 
defaultInterpreterId);
+      $scope.note.defaultInterpreter = $scope.interpreterSettings[0];
     } else {
-      let noteId = $routeParams.noteId
-      vm.websocketMsgSrv.cloneNote(noteId, $scope.note.notename)
+      let noteId = $routeParams.noteId;
+      vm.websocketMsgSrv.cloneNote(noteId, $scope.note.notename);
     }
-  }
+  };
 
-  vm.handleNameEnter = function () {
-    angular.element('#noteCreateModal').modal('toggle')
-    vm.createNote()
-  }
+  vm.handleNameEnter = function() {
+    angular.element('#noteCreateModal').modal('toggle');
+    vm.createNote();
+  };
 
   vm.preVisible = function(clone, sourceNoteName, path) {
-    vm.clone = clone
-    vm.sourceNoteName = sourceNoteName
-    $scope.note.notename = vm.clone ? vm.cloneNoteName() : vm.newNoteName(path)
-    $scope.$apply()
-  }
+    vm.clone = clone;
+    vm.sourceNoteName = sourceNoteName;
+    $scope.note.notename = vm.clone ? vm.cloneNoteName() : 
vm.newNoteName(path);
+    $scope.$apply();
+  };
 
   vm.newNoteName = function(path) {
-    let newCount = 1
-    angular.forEach(vm.notes.flatList, function (noteName) {
-      noteName = noteName.name
+    let newCount = 1;
+    angular.forEach(vm.notes.flatList, function(noteName) {
+      noteName = noteName.name;
       if (noteName.match(/^Untitled Note [0-9]*$/)) {
-        let lastCount = noteName.substr(14) * 1
+        let lastCount = noteName.substr(14) * 1;
         if (newCount <= lastCount) {
-          newCount = lastCount + 1
+          newCount = lastCount + 1;
         }
       }
-    })
-    return (path ? path + '/' : '') + 'Untitled Note ' + newCount
-  }
+    });
+    return (path ? path + '/' : '') + 'Untitled Note ' + newCount;
+  };
 
-  vm.cloneNoteName = function () {
-    let copyCount = 1
-    let newCloneName = ''
-    let lastIndex = vm.sourceNoteName.lastIndexOf(' ')
-    let endsWithNumber = !!vm.sourceNoteName.match('^.+?\\s\\d$')
-    let noteNamePrefix = endsWithNumber ? vm.sourceNoteName.substr(0, 
lastIndex) : vm.sourceNoteName
-    let regexp = new RegExp('^' + noteNamePrefix + ' .+')
+  vm.cloneNoteName = function() {
+    let copyCount = 1;
+    let newCloneName = '';
+    let lastIndex = vm.sourceNoteName.lastIndexOf(' ');
+    let endsWithNumber = !!vm.sourceNoteName.match('^.+?\\s\\d$');
+    let noteNamePrefix = endsWithNumber ? vm.sourceNoteName.substr(0, 
lastIndex) : vm.sourceNoteName;
+    let regexp = new RegExp('^' + noteNamePrefix + ' .+');
 
-    angular.forEach(vm.notes.flatList, function (noteName) {
-      noteName = noteName.name
+    angular.forEach(vm.notes.flatList, function(noteName) {
+      noteName = noteName.name;
       if (noteName.match(regexp)) {
-        let lastCopyCount = noteName.substr(lastIndex).trim()
-        newCloneName = noteNamePrefix
-        lastCopyCount = parseInt(lastCopyCount)
+        let lastCopyCount = noteName.substr(lastIndex).trim();
+        newCloneName = noteNamePrefix;
+        lastCopyCount = parseInt(lastCopyCount);
         if (copyCount <= lastCopyCount) {
-          copyCount = lastCopyCount + 1
+          copyCount = lastCopyCount + 1;
         }
       }
-    })
+    });
 
     if (!newCloneName) {
-      newCloneName = vm.sourceNoteName
+      newCloneName = vm.sourceNoteName;
     }
-    return newCloneName + ' ' + copyCount
-  }
+    return newCloneName + ' ' + copyCount;
+  };
 
-  vm.getInterpreterSettings = function () {
-    vm.websocketMsgSrv.getInterpreterSettings()
-  }
+  vm.getInterpreterSettings = function() {
+    vm.websocketMsgSrv.getInterpreterSettings();
+  };
 
-  $scope.$on('interpreterSettings', function (event, data) {
-    $scope.interpreterSettings = data.interpreterSettings
+  $scope.$on('interpreterSettings', function(event, data) {
+    $scope.interpreterSettings = data.interpreterSettings;
 
     // initialize default interpreter with Spark interpreter
-    $scope.note.defaultInterpreter = data.interpreterSettings[0]
-  })
+    $scope.note.defaultInterpreter = data.interpreterSettings[0];
+  });
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-create/note-create.controller.test.js
----------------------------------------------------------------------
diff --git 
a/zeppelin-web/src/components/note-create/note-create.controller.test.js 
b/zeppelin-web/src/components/note-create/note-create.controller.test.js
index d409a14..59f01d2 100644
--- a/zeppelin-web/src/components/note-create/note-create.controller.test.js
+++ b/zeppelin-web/src/components/note-create/note-create.controller.test.js
@@ -1,39 +1,39 @@
-describe('Controller: NoteCreateCtrl', function () {
-  beforeEach(angular.mock.module('zeppelinWebApp'))
+describe('Controller: NoteCreateCtrl', function() {
+  beforeEach(angular.mock.module('zeppelinWebApp'));
 
-  let scope
-  let ctrl
-  let noteList
+  let scope;
+  let ctrl;
+  let noteList;
 
-  beforeEach(inject(function ($injector, $rootScope, $controller) {
-    noteList = $injector.get('noteListFactory')
-    scope = $rootScope.$new()
+  beforeEach(inject(function($injector, $rootScope, $controller) {
+    noteList = $injector.get('noteListFactory');
+    scope = $rootScope.$new();
     ctrl = $controller('NoteCreateCtrl', {
       $scope: scope,
-      noteListFactory: noteList
-    })
-  }))
+      noteListFactory: noteList,
+    });
+  }));
 
-  it('should create a new name from current name when cloneNoteName is 
called', function () {
+  it('should create a new name from current name when cloneNoteName is 
called', function() {
     let notesList = [
       {name: 'dsds 1', id: '1'},
       {name: 'dsds 2', id: '2'},
       {name: 'test name', id: '3'},
       {name: 'aa bb cc', id: '4'},
-      {name: 'Untitled Note 6', id: '4'}
-    ]
+      {name: 'Untitled Note 6', id: '4'},
+    ];
 
-    noteList.setNotes(notesList)
+    noteList.setNotes(notesList);
 
-    ctrl.sourceNoteName = 'test name'
-    expect(ctrl.cloneNoteName()).toEqual('test name 1')
-    ctrl.sourceNoteName = 'aa bb cc'
-    expect(ctrl.cloneNoteName()).toEqual('aa bb cc 1')
-    ctrl.sourceNoteName = 'Untitled Note 6'
-    expect(ctrl.cloneNoteName()).toEqual('Untitled Note 7')
-    ctrl.sourceNoteName = 'My_note'
-    expect(ctrl.cloneNoteName()).toEqual('My_note 1')
-    ctrl.sourceNoteName = 'dsds 2'
-    expect(ctrl.cloneNoteName()).toEqual('dsds 3')
-  })
-})
+    ctrl.sourceNoteName = 'test name';
+    expect(ctrl.cloneNoteName()).toEqual('test name 1');
+    ctrl.sourceNoteName = 'aa bb cc';
+    expect(ctrl.cloneNoteName()).toEqual('aa bb cc 1');
+    ctrl.sourceNoteName = 'Untitled Note 6';
+    expect(ctrl.cloneNoteName()).toEqual('Untitled Note 7');
+    ctrl.sourceNoteName = 'My_note';
+    expect(ctrl.cloneNoteName()).toEqual('My_note 1');
+    ctrl.sourceNoteName = 'dsds 2';
+    expect(ctrl.cloneNoteName()).toEqual('dsds 3');
+  });
+});

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-create/visible.directive.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-create/visible.directive.js 
b/zeppelin-web/src/components/note-create/visible.directive.js
index 48c170f..7ba8db7 100644
--- a/zeppelin-web/src/components/note-create/visible.directive.js
+++ b/zeppelin-web/src/components/note-create/visible.directive.js
@@ -12,34 +12,34 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').directive('modalvisible', modalvisible)
+angular.module('zeppelinWebApp').directive('modalvisible', modalvisible);
 
-function modalvisible () {
+function modalvisible() {
   return {
     restrict: 'A',
     scope: {
       preVisibleCallback: '&previsiblecallback',
       postVisibleCallback: '&postvisiblecallback',
-      targetinput: '@targetinput'
+      targetinput: '@targetinput',
     },
-    link: function (scope, element, attrs) {
+    link: function(scope, element, attrs) {
       // Add some listeners
-      let previsibleMethod = scope.preVisibleCallback
-      let postVisibleMethod = scope.postVisibleCallback
-      element.on('show.bs.modal', function (e) {
-        let relatedTarget = angular.element(e.relatedTarget)
-        let clone = relatedTarget.data('clone')
-        let sourceNoteName = relatedTarget.data('source-note-name')
-        let path = relatedTarget.data('path')
-        let cloneNote = clone ? true : false
-        previsibleMethod()(cloneNote, sourceNoteName, path)
-      })
-      element.on('shown.bs.modal', function (e) {
+      let previsibleMethod = scope.preVisibleCallback;
+      let postVisibleMethod = scope.postVisibleCallback;
+      element.on('show.bs.modal', function(e) {
+        let relatedTarget = angular.element(e.relatedTarget);
+        let clone = relatedTarget.data('clone');
+        let sourceNoteName = relatedTarget.data('source-note-name');
+        let path = relatedTarget.data('path');
+        let cloneNote = clone ? true : false;
+        previsibleMethod()(cloneNote, sourceNoteName, path);
+      });
+      element.on('shown.bs.modal', function(e) {
         if (scope.targetinput) {
-          angular.element(e.target).find('input#' + scope.targetinput).select()
+          angular.element(e.target).find('input#' + 
scope.targetinput).select();
         }
-        postVisibleMethod()
-      })
-    }
-  }
+        postVisibleMethod();
+      });
+    },
+  };
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-import/note-import.controller.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-import/note-import.controller.js 
b/zeppelin-web/src/components/note-import/note-import.controller.js
index 8cec890..fbfc5fa 100644
--- a/zeppelin-web/src/components/note-import/note-import.controller.js
+++ b/zeppelin-web/src/components/note-import/note-import.controller.js
@@ -12,76 +12,76 @@
  * limitations under the License.
  */
 
-import './note-import.css'
-
-angular.module('zeppelinWebApp').controller('NoteImportCtrl', NoteImportCtrl)
-
-function NoteImportCtrl ($scope, $timeout, websocketMsgSrv) {
-  'ngInject'
-
-  let vm = this
-  $scope.note = {}
-  $scope.note.step1 = true
-  $scope.note.step2 = false
-  $scope.maxLimit = ''
-  let limit = 0
-
-  websocketMsgSrv.listConfigurations()
-  $scope.$on('configurationsInfo', function (scope, event) {
-    limit = event.configurations['zeppelin.websocket.max.text.message.size']
-    $scope.maxLimit = Math.round(limit / 1048576)
-  })
-
-  vm.resetFlags = function () {
-    $scope.note = {}
-    $scope.note.step1 = true
-    $scope.note.step2 = false
-    angular.element('#noteImportFile').val('')
-  }
-
-  $scope.uploadFile = function () {
-    angular.element('#noteImportFile').click()
-  }
-
-  $scope.importFile = function (element) {
-    $scope.note.errorText = ''
-    $scope.note.importFile = element.files[0]
-    let file = $scope.note.importFile
-    let reader = new FileReader()
+import './note-import.css';
+
+angular.module('zeppelinWebApp').controller('NoteImportCtrl', NoteImportCtrl);
+
+function NoteImportCtrl($scope, $timeout, websocketMsgSrv) {
+  'ngInject';
+
+  let vm = this;
+  $scope.note = {};
+  $scope.note.step1 = true;
+  $scope.note.step2 = false;
+  $scope.maxLimit = '';
+  let limit = 0;
+
+  websocketMsgSrv.listConfigurations();
+  $scope.$on('configurationsInfo', function(scope, event) {
+    limit = event.configurations['zeppelin.websocket.max.text.message.size'];
+    $scope.maxLimit = Math.round(limit / 1048576);
+  });
+
+  vm.resetFlags = function() {
+    $scope.note = {};
+    $scope.note.step1 = true;
+    $scope.note.step2 = false;
+    angular.element('#noteImportFile').val('');
+  };
+
+  $scope.uploadFile = function() {
+    angular.element('#noteImportFile').click();
+  };
+
+  $scope.importFile = function(element) {
+    $scope.note.errorText = '';
+    $scope.note.importFile = element.files[0];
+    let file = $scope.note.importFile;
+    let reader = new FileReader();
 
     if (file.size > limit) {
-      $scope.note.errorText = 'File size limit Exceeded!'
-      $scope.$apply()
-      return
+      $scope.note.errorText = 'File size limit Exceeded!';
+      $scope.$apply();
+      return;
     }
 
-    reader.onloadend = function () {
-      vm.processImportJson(reader.result)
-    }
+    reader.onloadend = function() {
+      vm.processImportJson(reader.result);
+    };
 
     if (file) {
-      reader.readAsText(file)
+      reader.readAsText(file);
     }
-  }
-
-  $scope.uploadURL = function () {
-    $scope.note.errorText = ''
-    $scope.note.step1 = false
-    $timeout(function () {
-      $scope.note.step2 = true
-    }, 400)
-  }
-
-  vm.importBack = function () {
-    $scope.note.errorText = ''
-    $timeout(function () {
-      $scope.note.step1 = true
-    }, 400)
-    $scope.note.step2 = false
-  }
-
-  vm.importNote = function () {
-    $scope.note.errorText = ''
+  };
+
+  $scope.uploadURL = function() {
+    $scope.note.errorText = '';
+    $scope.note.step1 = false;
+    $timeout(function() {
+      $scope.note.step2 = true;
+    }, 400);
+  };
+
+  vm.importBack = function() {
+    $scope.note.errorText = '';
+    $timeout(function() {
+      $scope.note.step1 = true;
+    }, 400);
+    $scope.note.step2 = false;
+  };
+
+  vm.importNote = function() {
+    $scope.note.errorText = '';
     if ($scope.note.importUrl) {
       jQuery.ajax({
         url: $scope.note.importUrl,
@@ -89,50 +89,50 @@ function NoteImportCtrl ($scope, $timeout, websocketMsgSrv) 
{
         dataType: 'json',
         jsonp: false,
         xhrFields: {
-          withCredentials: false
+          withCredentials: false,
         },
-        error: function (xhr, ajaxOptions, thrownError) {
-          $scope.note.errorText = 'Unable to Fetch URL'
-          $scope.$apply()
-        }}).done(function (data) {
-          vm.processImportJson(data)
-        })
+        error: function(xhr, ajaxOptions, thrownError) {
+          $scope.note.errorText = 'Unable to Fetch URL';
+          $scope.$apply();
+        }}).done(function(data) {
+          vm.processImportJson(data);
+        });
     } else {
-      $scope.note.errorText = 'Enter URL'
-      $scope.$apply()
+      $scope.note.errorText = 'Enter URL';
+      $scope.$apply();
     }
-  }
+  };
 
-  vm.processImportJson = function (result) {
+  vm.processImportJson = function(result) {
     if (typeof result !== 'object') {
       try {
-        result = JSON.parse(result)
+        result = JSON.parse(result);
       } catch (e) {
-        $scope.note.errorText = 'JSON parse exception'
-        $scope.$apply()
-        return
+        $scope.note.errorText = 'JSON parse exception';
+        $scope.$apply();
+        return;
       }
     }
     if (result.paragraphs && result.paragraphs.length > 0) {
       if (!$scope.note.noteImportName) {
-        $scope.note.noteImportName = result.name
+        $scope.note.noteImportName = result.name;
       } else {
-        result.name = $scope.note.noteImportName
+        result.name = $scope.note.noteImportName;
       }
-      websocketMsgSrv.importNote(result)
+      websocketMsgSrv.importNote(result);
       // angular.element('#noteImportModal').modal('hide');
     } else {
-      $scope.note.errorText = 'Invalid JSON'
+      $scope.note.errorText = 'Invalid JSON';
     }
-    $scope.$apply()
-  }
+    $scope.$apply();
+  };
 
   /*
    ** $scope.$on functions below
    */
 
-  $scope.$on('setNoteMenu', function (event, notes) {
-    vm.resetFlags()
-    angular.element('#noteImportModal').modal('hide')
-  })
+  $scope.$on('setNoteMenu', function(event, notes) {
+    vm.resetFlags();
+    angular.element('#noteImportModal').modal('hide');
+  });
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-list/note-list.factory.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-list/note-list.factory.js 
b/zeppelin-web/src/components/note-list/note-list.factory.js
index 5e2c513..59662fa 100644
--- a/zeppelin-web/src/components/note-list/note-list.factory.js
+++ b/zeppelin-web/src/components/note-list/note-list.factory.js
@@ -12,71 +12,73 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').factory('noteListFactory', NoteListFactory)
+angular.module('zeppelinWebApp').factory('noteListFactory', NoteListFactory);
 
 function NoteListFactory(arrayOrderingSrv, TRASH_FOLDER_ID) {
-  'ngInject'
+  'ngInject';
 
   const notes = {
     root: {children: []},
     flatList: [],
     flatFolderMap: {},
 
-    setNotes: function (notesList) {
+    setNotes: function(notesList) {
       // a flat list to boost searching
       notes.flatList = _.map(notesList, (note) => {
         note.isTrash = note.name
-          ? note.name.split('/')[0] === TRASH_FOLDER_ID : false
-        return note
-      })
+          ? note.name.split('/')[0] === TRASH_FOLDER_ID : false;
+        return note;
+      });
 
       // construct the folder-based tree
-      notes.root = {children: []}
-      notes.flatFolderMap = {}
-      _.reduce(notesList, function (root, note) {
-        let noteName = note.name || note.id
-        let nodes = noteName.match(/([^\/][^\/]*)/g)
+      notes.root = {children: []};
+      notes.flatFolderMap = {};
+      _.reduce(notesList, function(root, note) {
+        let noteName = note.name || note.id;
+        let nodes = noteName.match(/([^\/][^\/]*)/g);
 
         // recursively add nodes
-        addNode(root, nodes, note.id)
+        addNode(root, nodes, note.id);
 
-        return root
-      }, notes.root)
-      notes.root.children.sort(arrayOrderingSrv.noteComparator)
-    }
-  }
+        return root;
+      }, notes.root);
+      notes.root.children.sort(arrayOrderingSrv.noteComparator);
+    },
+  };
 
-  const addNode = function (curDir, nodes, noteId) {
+  const addNode = function(curDir, nodes, noteId) {
     if (nodes.length === 1) {  // the leaf
       curDir.children.push({
         name: nodes[0],
         id: noteId,
         path: curDir.id ? curDir.id + '/' + nodes[0] : nodes[0],
-        isTrash: curDir.id ? curDir.id.split('/')[0] === TRASH_FOLDER_ID : 
false
-      })
+        isTrash: curDir.id ? curDir.id.split('/')[0] === TRASH_FOLDER_ID : 
false,
+      });
     } else {  // a folder node
-      let node = nodes.shift()
+      let node = nodes.shift();
       let dir = _.find(curDir.children,
-        function (c) { return c.name === node && c.children !== undefined })
+        function(c) {
+          return c.name === node && c.children !== undefined;
+        });
       if (dir !== undefined) { // found an existing dir
-        addNode(dir, nodes, noteId)
+        addNode(dir, nodes, noteId);
       } else {
         let newDir = {
           id: curDir.id ? curDir.id + '/' + node : node,
           name: node,
           hidden: true,
           children: [],
-          isTrash: curDir.id ? curDir.id.split('/')[0] === TRASH_FOLDER_ID : 
false
-        }
+          isTrash: curDir.id ? curDir.id.split('/')[0] === TRASH_FOLDER_ID : 
false,
+        };
 
         // add the folder to flat folder map
-        notes.flatFolderMap[newDir.id] = newDir
+        notes.flatFolderMap[newDir.id] = newDir;
 
-        curDir.children.push(newDir)
-        addNode(newDir, nodes, noteId)
+        curDir.children.push(newDir);
+        addNode(newDir, nodes, noteId);
       }
     }
-  }
+  };
 
-  return notes
+  return notes;
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-list/note-list.factory.test.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-list/note-list.factory.test.js 
b/zeppelin-web/src/components/note-list/note-list.factory.test.js
index c16504c..2a962d8 100644
--- a/zeppelin-web/src/components/note-list/note-list.factory.test.js
+++ b/zeppelin-web/src/components/note-list/note-list.factory.test.js
@@ -1,15 +1,15 @@
-describe('Factory: NoteList', function () {
-  let noteList
+describe('Factory: NoteList', function() {
+  let noteList;
 
-  beforeEach(function () {
-    angular.mock.module('zeppelinWebApp')
+  beforeEach(function() {
+    angular.mock.module('zeppelinWebApp');
 
-    inject(function ($injector) {
-      noteList = $injector.get('noteListFactory')
-    })
-  })
+    inject(function($injector) {
+      noteList = $injector.get('noteListFactory');
+    });
+  });
 
-  it('should generate both flat list and folder-based list properly', function 
() {
+  it('should generate both flat list and folder-based list properly', 
function() {
     let notesList = [
       {name: 'A', id: '000001'},
       {name: 'B', id: '000002'},
@@ -19,57 +19,57 @@ describe('Factory: NoteList', function () {
       {name: '/C/CB/CBA', id: '000006'},  // same name with a dir
       {name: '/C/CB/CBA', id: '000007'},  // same name with another note
       {name: 'C///CB//CBB', id: '000008'},
-      {name: 'D/D[A/DA]B', id: '000009'}   // check if '[' and ']' considered 
as folder seperator
-    ]
-    noteList.setNotes(notesList)
+      {name: 'D/D[A/DA]B', id: '000009'},   // check if '[' and ']' considered 
as folder seperator
+    ];
+    noteList.setNotes(notesList);
 
-    let flatList = noteList.flatList
-    expect(flatList.length).toBe(9)
-    expect(flatList[0].name).toBe('A')
-    expect(flatList[0].id).toBe('000001')
-    expect(flatList[1].name).toBe('B')
-    expect(flatList[2].name).toBeUndefined()
-    expect(flatList[3].name).toBe('/C/CA')
-    expect(flatList[4].name).toBe('/C/CB')
-    expect(flatList[5].name).toBe('/C/CB/CBA')
-    expect(flatList[6].name).toBe('/C/CB/CBA')
-    expect(flatList[7].name).toBe('C///CB//CBB')
-    expect(flatList[8].name).toBe('D/D[A/DA]B')
+    let flatList = noteList.flatList;
+    expect(flatList.length).toBe(9);
+    expect(flatList[0].name).toBe('A');
+    expect(flatList[0].id).toBe('000001');
+    expect(flatList[1].name).toBe('B');
+    expect(flatList[2].name).toBeUndefined();
+    expect(flatList[3].name).toBe('/C/CA');
+    expect(flatList[4].name).toBe('/C/CB');
+    expect(flatList[5].name).toBe('/C/CB/CBA');
+    expect(flatList[6].name).toBe('/C/CB/CBA');
+    expect(flatList[7].name).toBe('C///CB//CBB');
+    expect(flatList[8].name).toBe('D/D[A/DA]B');
 
-    let folderList = noteList.root.children
-    expect(folderList.length).toBe(5)
-    expect(folderList[3].name).toBe('A')
-    expect(folderList[3].id).toBe('000001')
-    expect(folderList[4].name).toBe('B')
-    expect(folderList[2].name).toBe('000003')
-    expect(folderList[0].name).toBe('C')
-    expect(folderList[0].id).toBe('C')
-    expect(folderList[0].children.length).toBe(3)
-    expect(folderList[0].children[0].name).toBe('CA')
-    expect(folderList[0].children[0].id).toBe('000004')
-    expect(folderList[0].children[0].children).toBeUndefined()
-    expect(folderList[0].children[1].name).toBe('CB')
-    expect(folderList[0].children[1].id).toBe('000005')
-    expect(folderList[0].children[1].children).toBeUndefined()
-    expect(folderList[0].children[2].name).toBe('CB')
-    expect(folderList[0].children[2].id).toBe('C/CB')
-    expect(folderList[0].children[2].children.length).toBe(3)
-    expect(folderList[0].children[2].children[0].name).toBe('CBA')
-    expect(folderList[0].children[2].children[0].id).toBe('000006')
-    expect(folderList[0].children[2].children[0].children).toBeUndefined()
-    expect(folderList[0].children[2].children[1].name).toBe('CBA')
-    expect(folderList[0].children[2].children[1].id).toBe('000007')
-    expect(folderList[0].children[2].children[1].children).toBeUndefined()
-    expect(folderList[0].children[2].children[2].name).toBe('CBB')
-    expect(folderList[0].children[2].children[2].id).toBe('000008')
-    expect(folderList[0].children[2].children[2].children).toBeUndefined()
-    expect(folderList[1].name).toBe('D')
-    expect(folderList[1].id).toBe('D')
-    expect(folderList[1].children.length).toBe(1)
-    expect(folderList[1].children[0].name).toBe('D[A')
-    expect(folderList[1].children[0].id).toBe('D/D[A')
-    expect(folderList[1].children[0].children[0].name).toBe('DA]B')
-    expect(folderList[1].children[0].children[0].id).toBe('000009')
-    expect(folderList[1].children[0].children[0].children).toBeUndefined()
-  })
-})
+    let folderList = noteList.root.children;
+    expect(folderList.length).toBe(5);
+    expect(folderList[3].name).toBe('A');
+    expect(folderList[3].id).toBe('000001');
+    expect(folderList[4].name).toBe('B');
+    expect(folderList[2].name).toBe('000003');
+    expect(folderList[0].name).toBe('C');
+    expect(folderList[0].id).toBe('C');
+    expect(folderList[0].children.length).toBe(3);
+    expect(folderList[0].children[0].name).toBe('CA');
+    expect(folderList[0].children[0].id).toBe('000004');
+    expect(folderList[0].children[0].children).toBeUndefined();
+    expect(folderList[0].children[1].name).toBe('CB');
+    expect(folderList[0].children[1].id).toBe('000005');
+    expect(folderList[0].children[1].children).toBeUndefined();
+    expect(folderList[0].children[2].name).toBe('CB');
+    expect(folderList[0].children[2].id).toBe('C/CB');
+    expect(folderList[0].children[2].children.length).toBe(3);
+    expect(folderList[0].children[2].children[0].name).toBe('CBA');
+    expect(folderList[0].children[2].children[0].id).toBe('000006');
+    expect(folderList[0].children[2].children[0].children).toBeUndefined();
+    expect(folderList[0].children[2].children[1].name).toBe('CBA');
+    expect(folderList[0].children[2].children[1].id).toBe('000007');
+    expect(folderList[0].children[2].children[1].children).toBeUndefined();
+    expect(folderList[0].children[2].children[2].name).toBe('CBB');
+    expect(folderList[0].children[2].children[2].id).toBe('000008');
+    expect(folderList[0].children[2].children[2].children).toBeUndefined();
+    expect(folderList[1].name).toBe('D');
+    expect(folderList[1].id).toBe('D');
+    expect(folderList[1].children.length).toBe(1);
+    expect(folderList[1].children[0].name).toBe('D[A');
+    expect(folderList[1].children[0].id).toBe('D/D[A');
+    expect(folderList[1].children[0].children[0].name).toBe('DA]B');
+    expect(folderList[1].children[0].children[0].id).toBe('000009');
+    expect(folderList[1].children[0].children[0].children).toBeUndefined();
+  });
+});

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-rename/note-rename.controller.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-rename/note-rename.controller.js 
b/zeppelin-web/src/components/note-rename/note-rename.controller.js
index b950d2b..0fa31c4 100644
--- a/zeppelin-web/src/components/note-rename/note-rename.controller.js
+++ b/zeppelin-web/src/components/note-rename/note-rename.controller.js
@@ -12,37 +12,37 @@
  * limitations under the License.
  */
 
-import './note-rename.css'
+import './note-rename.css';
 
-angular.module('zeppelinWebApp').controller('NoteRenameCtrl', 
NoteRenameController)
+angular.module('zeppelinWebApp').controller('NoteRenameCtrl', 
NoteRenameController);
 
 function NoteRenameController($scope) {
-  'ngInject'
+  'ngInject';
 
-  let self = this
+  let self = this;
 
-  $scope.params = {newName: ''}
-  $scope.isValid = true
+  $scope.params = {newName: ''};
+  $scope.isValid = true;
 
-  $scope.rename = function () {
-    angular.element('#noteRenameModal').modal('hide')
-    self.callback($scope.params.newName)
-  }
+  $scope.rename = function() {
+    angular.element('#noteRenameModal').modal('hide');
+    self.callback($scope.params.newName);
+  };
 
-  $scope.$on('openRenameModal', function (event, options) {
-    self.validator = options.validator || defaultValidator
-    self.callback = options.callback || function () {}
+  $scope.$on('openRenameModal', function(event, options) {
+    self.validator = options.validator || defaultValidator;
+    self.callback = options.callback || function() {};
 
-    $scope.title = options.title || 'Rename'
-    $scope.params.newName = options.oldName || ''
-    $scope.validate = function () {
-      $scope.isValid = self.validator($scope.params.newName)
-    }
+    $scope.title = options.title || 'Rename';
+    $scope.params.newName = options.oldName || '';
+    $scope.validate = function() {
+      $scope.isValid = self.validator($scope.params.newName);
+    };
 
-    angular.element('#noteRenameModal').modal('show')
-  })
+    angular.element('#noteRenameModal').modal('show');
+  });
 
-  function defaultValidator (str) {
-    return !!str.trim()
+  function defaultValidator(str) {
+    return !!str.trim();
   }
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/note-rename/note-rename.service.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/note-rename/note-rename.service.js 
b/zeppelin-web/src/components/note-rename/note-rename.service.js
index 64df82f..fd0f3e5 100644
--- a/zeppelin-web/src/components/note-rename/note-rename.service.js
+++ b/zeppelin-web/src/components/note-rename/note-rename.service.js
@@ -12,12 +12,12 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').service('noteRenameService', 
NoteRenameService)
+angular.module('zeppelinWebApp').service('noteRenameService', 
NoteRenameService);
 
 function NoteRenameService($rootScope) {
-  'ngInject'
+  'ngInject';
 
-  let self = this
+  let self = this;
 
   /**
    * <options schema>
@@ -26,7 +26,7 @@ function NoteRenameService($rootScope) {
    * callback: (newName: string)=>void - callback onButtonClick
    * validator: (str: string)=>boolean - input validator
    */
-  self.openRenameModal = function (options) {
-    $rootScope.$broadcast('openRenameModal', options)
-  }
+  self.openRenameModal = function(options) {
+    $rootScope.$broadcast('openRenameModal', options);
+  };
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/websocket/websocket-event.factory.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/websocket/websocket-event.factory.js 
b/zeppelin-web/src/components/websocket/websocket-event.factory.js
index 70d61ec..18c704d 100644
--- a/zeppelin-web/src/components/websocket/websocket-event.factory.js
+++ b/zeppelin-web/src/components/websocket/websocket-event.factory.js
@@ -12,92 +12,92 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').factory('websocketEvents', 
WebsocketEventFactory)
+angular.module('zeppelinWebApp').factory('websocketEvents', 
WebsocketEventFactory);
 
-function WebsocketEventFactory ($rootScope, $websocket, $location, baseUrlSrv) 
{
-  'ngInject'
+function WebsocketEventFactory($rootScope, $websocket, $location, baseUrlSrv) {
+  'ngInject';
 
-  let websocketCalls = {}
-  let pingIntervalId
+  let websocketCalls = {};
+  let pingIntervalId;
 
-  websocketCalls.ws = $websocket(baseUrlSrv.getWebsocketUrl())
-  websocketCalls.ws.reconnectIfNotNormalClose = true
+  websocketCalls.ws = $websocket(baseUrlSrv.getWebsocketUrl());
+  websocketCalls.ws.reconnectIfNotNormalClose = true;
 
-  websocketCalls.ws.onOpen(function () {
-    console.log('Websocket created')
-    $rootScope.$broadcast('setConnectedStatus', true)
-    pingIntervalId = setInterval(function () {
-      websocketCalls.sendNewEvent({op: 'PING'})
-    }, 10000)
-  })
+  websocketCalls.ws.onOpen(function() {
+    console.log('Websocket created');
+    $rootScope.$broadcast('setConnectedStatus', true);
+    pingIntervalId = setInterval(function() {
+      websocketCalls.sendNewEvent({op: 'PING'});
+    }, 10000);
+  });
 
-  websocketCalls.sendNewEvent = function (data) {
+  websocketCalls.sendNewEvent = function(data) {
     if ($rootScope.ticket !== undefined) {
-      data.principal = $rootScope.ticket.principal
-      data.ticket = $rootScope.ticket.ticket
-      data.roles = $rootScope.ticket.roles
+      data.principal = $rootScope.ticket.principal;
+      data.ticket = $rootScope.ticket.ticket;
+      data.roles = $rootScope.ticket.roles;
     } else {
-      data.principal = ''
-      data.ticket = ''
-      data.roles = ''
+      data.principal = '';
+      data.ticket = '';
+      data.roles = '';
     }
-    console.log('Send >> %o, %o, %o, %o, %o', data.op, data.principal, 
data.ticket, data.roles, data)
-    return websocketCalls.ws.send(JSON.stringify(data))
-  }
+    console.log('Send >> %o, %o, %o, %o, %o', data.op, data.principal, 
data.ticket, data.roles, data);
+    return websocketCalls.ws.send(JSON.stringify(data));
+  };
 
-  websocketCalls.isConnected = function () {
-    return (websocketCalls.ws.socket.readyState === 1)
-  }
+  websocketCalls.isConnected = function() {
+    return (websocketCalls.ws.socket.readyState === 1);
+  };
 
-  websocketCalls.ws.onMessage(function (event) {
-    let payload
+  websocketCalls.ws.onMessage(function(event) {
+    let payload;
     if (event.data) {
-      payload = angular.fromJson(event.data)
+      payload = angular.fromJson(event.data);
     }
 
-    console.log('Receive << %o, %o', payload.op, payload)
+    console.log('Receive << %o, %o', payload.op, payload);
 
-    let op = payload.op
-    let data = payload.data
+    let op = payload.op;
+    let data = payload.data;
     if (op === 'NOTE') {
-      $rootScope.$broadcast('setNoteContent', data.note)
+      $rootScope.$broadcast('setNoteContent', data.note);
     } else if (op === 'NEW_NOTE') {
-      $location.path('/notebook/' + data.note.id)
+      $location.path('/notebook/' + data.note.id);
     } else if (op === 'NOTES_INFO') {
-      $rootScope.$broadcast('setNoteMenu', data.notes)
+      $rootScope.$broadcast('setNoteMenu', data.notes);
     } else if (op === 'LIST_NOTE_JOBS') {
-      $rootScope.$emit('jobmanager:set-jobs', data.noteJobs)
+      $rootScope.$emit('jobmanager:set-jobs', data.noteJobs);
     } else if (op === 'LIST_UPDATE_NOTE_JOBS') {
-      $rootScope.$emit('jobmanager:update-jobs', data.noteRunningJobs)
+      $rootScope.$emit('jobmanager:update-jobs', data.noteRunningJobs);
     } else if (op === 'AUTH_INFO') {
-      let btn = []
+      let btn = [];
       if ($rootScope.ticket.roles === '[]') {
         btn = [{
           label: 'Close',
-          action: function (dialog) {
-            dialog.close()
-          }
-        }]
+          action: function(dialog) {
+            dialog.close();
+          },
+        }];
       } else {
         btn = [{
           label: 'Login',
-          action: function (dialog) {
-            dialog.close()
+          action: function(dialog) {
+            dialog.close();
             angular.element('#loginModal').modal({
-              show: 'true'
-            })
-          }
+              show: 'true',
+            });
+          },
         }, {
           label: 'Cancel',
-          action: function (dialog) {
-            dialog.close()
+          action: function(dialog) {
+            dialog.close();
             // using $rootScope.apply to trigger angular digest cycle
             // changing $location.path inside bootstrap modal wont trigger 
digest
-            $rootScope.$apply(function () {
-              $location.path('/')
-            })
-          }
-        }]
+            $rootScope.$apply(function() {
+              $location.path('/');
+            });
+          },
+        }];
       }
 
       BootstrapDialog.show({
@@ -106,44 +106,44 @@ function WebsocketEventFactory ($rootScope, $websocket, 
$location, baseUrlSrv) {
         closeByKeyboard: false,
         title: 'Insufficient privileges',
         message: data.info.toString(),
-        buttons: btn
-      })
+        buttons: btn,
+      });
     } else if (op === 'PARAGRAPH') {
-      $rootScope.$broadcast('updateParagraph', data)
+      $rootScope.$broadcast('updateParagraph', data);
     } else if (op === 'RUN_PARAGRAPH_USING_SPELL') {
-      $rootScope.$broadcast('runParagraphUsingSpell', data)
+      $rootScope.$broadcast('runParagraphUsingSpell', data);
     } else if (op === 'PARAGRAPH_APPEND_OUTPUT') {
-      $rootScope.$broadcast('appendParagraphOutput', data)
+      $rootScope.$broadcast('appendParagraphOutput', data);
     } else if (op === 'PARAGRAPH_UPDATE_OUTPUT') {
-      $rootScope.$broadcast('updateParagraphOutput', data)
+      $rootScope.$broadcast('updateParagraphOutput', data);
     } else if (op === 'PROGRESS') {
-      $rootScope.$broadcast('updateProgress', data)
+      $rootScope.$broadcast('updateProgress', data);
     } else if (op === 'COMPLETION_LIST') {
-      $rootScope.$broadcast('completionList', data)
+      $rootScope.$broadcast('completionList', data);
     } else if (op === 'EDITOR_SETTING') {
-      $rootScope.$broadcast('editorSetting', data)
+      $rootScope.$broadcast('editorSetting', data);
     } else if (op === 'ANGULAR_OBJECT_UPDATE') {
-      $rootScope.$broadcast('angularObjectUpdate', data)
+      $rootScope.$broadcast('angularObjectUpdate', data);
     } else if (op === 'ANGULAR_OBJECT_REMOVE') {
-      $rootScope.$broadcast('angularObjectRemove', data)
+      $rootScope.$broadcast('angularObjectRemove', data);
     } else if (op === 'APP_APPEND_OUTPUT') {
-      $rootScope.$broadcast('appendAppOutput', data)
+      $rootScope.$broadcast('appendAppOutput', data);
     } else if (op === 'APP_UPDATE_OUTPUT') {
-      $rootScope.$broadcast('updateAppOutput', data)
+      $rootScope.$broadcast('updateAppOutput', data);
     } else if (op === 'APP_LOAD') {
-      $rootScope.$broadcast('appLoad', data)
+      $rootScope.$broadcast('appLoad', data);
     } else if (op === 'APP_STATUS_CHANGE') {
-      $rootScope.$broadcast('appStatusChange', data)
+      $rootScope.$broadcast('appStatusChange', data);
     } else if (op === 'LIST_REVISION_HISTORY') {
-      $rootScope.$broadcast('listRevisionHistory', data)
+      $rootScope.$broadcast('listRevisionHistory', data);
     } else if (op === 'NOTE_REVISION') {
-      $rootScope.$broadcast('noteRevision', data)
+      $rootScope.$broadcast('noteRevision', data);
     } else if (op === 'NOTE_REVISION_FOR_COMPARE') {
-      $rootScope.$broadcast('noteRevisionForCompare', data)
+      $rootScope.$broadcast('noteRevisionForCompare', data);
     } else if (op === 'INTERPRETER_BINDINGS') {
-      $rootScope.$broadcast('interpreterBindings', data)
+      $rootScope.$broadcast('interpreterBindings', data);
     } else if (op === 'SAVE_NOTE_FORMS') {
-      $rootScope.$broadcast('saveNoteForms', data)
+      $rootScope.$broadcast('saveNoteForms', data);
     } else if (op === 'ERROR_INFO') {
       BootstrapDialog.show({
         closable: false,
@@ -154,47 +154,47 @@ function WebsocketEventFactory ($rootScope, $websocket, 
$location, baseUrlSrv) {
         buttons: [{
           // close all the dialogs when there are error on running all 
paragraphs
           label: 'Close',
-          action: function () {
-            BootstrapDialog.closeAll()
-          }
-        }]
-      })
+          action: function() {
+            BootstrapDialog.closeAll();
+          },
+        }],
+      });
     } else if (op === 'SESSION_LOGOUT') {
-      $rootScope.$broadcast('session_logout', data)
+      $rootScope.$broadcast('session_logout', data);
     } else if (op === 'CONFIGURATIONS_INFO') {
-      $rootScope.$broadcast('configurationsInfo', data)
+      $rootScope.$broadcast('configurationsInfo', data);
     } else if (op === 'INTERPRETER_SETTINGS') {
-      $rootScope.$broadcast('interpreterSettings', data)
+      $rootScope.$broadcast('interpreterSettings', data);
     } else if (op === 'PARAGRAPH_ADDED') {
-      $rootScope.$broadcast('addParagraph', data.paragraph, data.index)
+      $rootScope.$broadcast('addParagraph', data.paragraph, data.index);
     } else if (op === 'PARAGRAPH_REMOVED') {
-      $rootScope.$broadcast('removeParagraph', data.id)
+      $rootScope.$broadcast('removeParagraph', data.id);
     } else if (op === 'PARAGRAPH_MOVED') {
-      $rootScope.$broadcast('moveParagraph', data.id, data.index)
+      $rootScope.$broadcast('moveParagraph', data.id, data.index);
     } else if (op === 'NOTE_UPDATED') {
-      $rootScope.$broadcast('updateNote', data.name, data.config, data.info)
+      $rootScope.$broadcast('updateNote', data.name, data.config, data.info);
     } else if (op === 'SET_NOTE_REVISION') {
-      $rootScope.$broadcast('setNoteRevisionResult', data)
+      $rootScope.$broadcast('setNoteRevisionResult', data);
     } else if (op === 'PARAS_INFO') {
-      $rootScope.$broadcast('updateParaInfos', data)
+      $rootScope.$broadcast('updateParaInfos', data);
     } else {
-      console.error(`unknown websocket op: ${op}`)
+      console.error(`unknown websocket op: ${op}`);
     }
-  })
+  });
 
-  websocketCalls.ws.onError(function (event) {
-    console.log('error message: ', event)
-    $rootScope.$broadcast('setConnectedStatus', false)
-  })
+  websocketCalls.ws.onError(function(event) {
+    console.log('error message: ', event);
+    $rootScope.$broadcast('setConnectedStatus', false);
+  });
 
-  websocketCalls.ws.onClose(function (event) {
-    console.log('close message: ', event)
+  websocketCalls.ws.onClose(function(event) {
+    console.log('close message: ', event);
     if (pingIntervalId !== undefined) {
-      clearInterval(pingIntervalId)
-      pingIntervalId = undefined
+      clearInterval(pingIntervalId);
+      pingIntervalId = undefined;
     }
-    $rootScope.$broadcast('setConnectedStatus', false)
-  })
+    $rootScope.$broadcast('setConnectedStatus', false);
+  });
 
-  return websocketCalls
+  return websocketCalls;
 }

http://git-wip-us.apache.org/repos/asf/zeppelin/blob/ed517a20/zeppelin-web/src/components/websocket/websocket-message.service.js
----------------------------------------------------------------------
diff --git a/zeppelin-web/src/components/websocket/websocket-message.service.js 
b/zeppelin-web/src/components/websocket/websocket-message.service.js
index cd65e1d..f0cf92b 100644
--- a/zeppelin-web/src/components/websocket/websocket-message.service.js
+++ b/zeppelin-web/src/components/websocket/websocket-message.service.js
@@ -12,100 +12,100 @@
  * limitations under the License.
  */
 
-angular.module('zeppelinWebApp').service('websocketMsgSrv', 
WebsocketMessageService)
+angular.module('zeppelinWebApp').service('websocketMsgSrv', 
WebsocketMessageService);
 
-function WebsocketMessageService ($rootScope, websocketEvents) {
-  'ngInject'
+function WebsocketMessageService($rootScope, websocketEvents) {
+  'ngInject';
 
   return {
 
-    getHomeNote: function () {
-      websocketEvents.sendNewEvent({op: 'GET_HOME_NOTE'})
+    getHomeNote: function() {
+      websocketEvents.sendNewEvent({op: 'GET_HOME_NOTE'});
     },
 
-    createNotebook: function (noteName, defaultInterpreterId) {
+    createNotebook: function(noteName, defaultInterpreterId) {
       websocketEvents.sendNewEvent({
         op: 'NEW_NOTE',
         data: {
           name: noteName,
-          defaultInterpreterId: defaultInterpreterId
-        }
-      })
+          defaultInterpreterId: defaultInterpreterId,
+        },
+      });
     },
 
-    moveNoteToTrash: function (noteId) {
-      websocketEvents.sendNewEvent({op: 'MOVE_NOTE_TO_TRASH', data: {id: 
noteId}})
+    moveNoteToTrash: function(noteId) {
+      websocketEvents.sendNewEvent({op: 'MOVE_NOTE_TO_TRASH', data: {id: 
noteId}});
     },
 
-    moveFolderToTrash: function (folderId) {
-      websocketEvents.sendNewEvent({op: 'MOVE_FOLDER_TO_TRASH', data: {id: 
folderId}})
+    moveFolderToTrash: function(folderId) {
+      websocketEvents.sendNewEvent({op: 'MOVE_FOLDER_TO_TRASH', data: {id: 
folderId}});
     },
 
-    restoreNote: function (noteId) {
-      websocketEvents.sendNewEvent({op: 'RESTORE_NOTE', data: {id: noteId}})
+    restoreNote: function(noteId) {
+      websocketEvents.sendNewEvent({op: 'RESTORE_NOTE', data: {id: noteId}});
     },
 
-    restoreFolder: function (folderId) {
-      websocketEvents.sendNewEvent({op: 'RESTORE_FOLDER', data: {id: 
folderId}})
+    restoreFolder: function(folderId) {
+      websocketEvents.sendNewEvent({op: 'RESTORE_FOLDER', data: {id: 
folderId}});
     },
 
-    restoreAll: function () {
-      websocketEvents.sendNewEvent({op: 'RESTORE_ALL'})
+    restoreAll: function() {
+      websocketEvents.sendNewEvent({op: 'RESTORE_ALL'});
     },
 
-    deleteNote: function (noteId) {
-      websocketEvents.sendNewEvent({op: 'DEL_NOTE', data: {id: noteId}})
+    deleteNote: function(noteId) {
+      websocketEvents.sendNewEvent({op: 'DEL_NOTE', data: {id: noteId}});
     },
 
-    removeFolder: function (folderId) {
-      websocketEvents.sendNewEvent({op: 'REMOVE_FOLDER', data: {id: folderId}})
+    removeFolder: function(folderId) {
+      websocketEvents.sendNewEvent({op: 'REMOVE_FOLDER', data: {id: 
folderId}});
     },
 
-    emptyTrash: function () {
-      websocketEvents.sendNewEvent({op: 'EMPTY_TRASH'})
+    emptyTrash: function() {
+      websocketEvents.sendNewEvent({op: 'EMPTY_TRASH'});
     },
 
-    cloneNote: function (noteIdToClone, newNoteName) {
-      websocketEvents.sendNewEvent({op: 'CLONE_NOTE', data: {id: 
noteIdToClone, name: newNoteName}})
+    cloneNote: function(noteIdToClone, newNoteName) {
+      websocketEvents.sendNewEvent({op: 'CLONE_NOTE', data: {id: 
noteIdToClone, name: newNoteName}});
     },
 
-    getNoteList: function () {
-      websocketEvents.sendNewEvent({op: 'LIST_NOTES'})
+    getNoteList: function() {
+      websocketEvents.sendNewEvent({op: 'LIST_NOTES'});
     },
 
-    reloadAllNotesFromRepo: function () {
-      websocketEvents.sendNewEvent({op: 'RELOAD_NOTES_FROM_REPO'})
+    reloadAllNotesFromRepo: function() {
+      websocketEvents.sendNewEvent({op: 'RELOAD_NOTES_FROM_REPO'});
     },
 
-    getNote: function (noteId) {
-      websocketEvents.sendNewEvent({op: 'GET_NOTE', data: {id: noteId}})
+    getNote: function(noteId) {
+      websocketEvents.sendNewEvent({op: 'GET_NOTE', data: {id: noteId}});
     },
 
-    updateNote: function (noteId, noteName, noteConfig) {
-      websocketEvents.sendNewEvent({op: 'NOTE_UPDATE', data: {id: noteId, 
name: noteName, config: noteConfig}})
+    updateNote: function(noteId, noteName, noteConfig) {
+      websocketEvents.sendNewEvent({op: 'NOTE_UPDATE', data: {id: noteId, 
name: noteName, config: noteConfig}});
     },
 
-    updatePersonalizedMode: function (noteId, modeValue) {
-      websocketEvents.sendNewEvent({op: 'UPDATE_PERSONALIZED_MODE', data: {id: 
noteId, personalized: modeValue}})
+    updatePersonalizedMode: function(noteId, modeValue) {
+      websocketEvents.sendNewEvent({op: 'UPDATE_PERSONALIZED_MODE', data: {id: 
noteId, personalized: modeValue}});
     },
 
-    renameNote: function (noteId, noteName) {
-      websocketEvents.sendNewEvent({op: 'NOTE_RENAME', data: {id: noteId, 
name: noteName}})
+    renameNote: function(noteId, noteName) {
+      websocketEvents.sendNewEvent({op: 'NOTE_RENAME', data: {id: noteId, 
name: noteName}});
     },
 
-    renameFolder: function (folderId, folderName) {
-      websocketEvents.sendNewEvent({op: 'FOLDER_RENAME', data: {id: folderId, 
name: folderName}})
+    renameFolder: function(folderId, folderName) {
+      websocketEvents.sendNewEvent({op: 'FOLDER_RENAME', data: {id: folderId, 
name: folderName}});
     },
 
-    moveParagraph: function (paragraphId, newIndex) {
-      websocketEvents.sendNewEvent({op: 'MOVE_PARAGRAPH', data: {id: 
paragraphId, index: newIndex}})
+    moveParagraph: function(paragraphId, newIndex) {
+      websocketEvents.sendNewEvent({op: 'MOVE_PARAGRAPH', data: {id: 
paragraphId, index: newIndex}});
     },
 
-    insertParagraph: function (newIndex) {
-      websocketEvents.sendNewEvent({op: 'INSERT_PARAGRAPH', data: {index: 
newIndex}})
+    insertParagraph: function(newIndex) {
+      websocketEvents.sendNewEvent({op: 'INSERT_PARAGRAPH', data: {index: 
newIndex}});
     },
 
-    copyParagraph: function (newIndex, paragraphTitle, paragraphData,
+    copyParagraph: function(newIndex, paragraphTitle, paragraphData,
                             paragraphConfig, paragraphParams) {
       websocketEvents.sendNewEvent({
         op: 'COPY_PARAGRAPH',
@@ -114,12 +114,12 @@ function WebsocketMessageService ($rootScope, 
websocketEvents) {
           title: paragraphTitle,
           paragraph: paragraphData,
           config: paragraphConfig,
-          params: paragraphParams
-        }
-      })
+          params: paragraphParams,
+        },
+      });
     },
 
-    updateAngularObject: function (noteId, paragraphId, name, value, 
interpreterGroupId) {
+    updateAngularObject: function(noteId, paragraphId, name, value, 
interpreterGroupId) {
       websocketEvents.sendNewEvent({
         op: 'ANGULAR_OBJECT_UPDATED',
         data: {
@@ -127,39 +127,39 @@ function WebsocketMessageService ($rootScope, 
websocketEvents) {
           paragraphId: paragraphId,
           name: name,
           value: value,
-          interpreterGroupId: interpreterGroupId
-        }
-      })
+          interpreterGroupId: interpreterGroupId,
+        },
+      });
     },
 
-    clientBindAngularObject: function (noteId, name, value, paragraphId) {
+    clientBindAngularObject: function(noteId, name, value, paragraphId) {
       websocketEvents.sendNewEvent({
         op: 'ANGULAR_OBJECT_CLIENT_BIND',
         data: {
           noteId: noteId,
           name: name,
           value: value,
-          paragraphId: paragraphId
-        }
-      })
+          paragraphId: paragraphId,
+        },
+      });
     },
 
-    clientUnbindAngularObject: function (noteId, name, paragraphId) {
+    clientUnbindAngularObject: function(noteId, name, paragraphId) {
       websocketEvents.sendNewEvent({
         op: 'ANGULAR_OBJECT_CLIENT_UNBIND',
         data: {
           noteId: noteId,
           name: name,
-          paragraphId: paragraphId
-        }
-      })
+          paragraphId: paragraphId,
+        },
+      });
     },
 
-    cancelParagraphRun: function (paragraphId) {
-      websocketEvents.sendNewEvent({op: 'CANCEL_PARAGRAPH', data: {id: 
paragraphId}})
+    cancelParagraphRun: function(paragraphId) {
+      websocketEvents.sendNewEvent({op: 'CANCEL_PARAGRAPH', data: {id: 
paragraphId}});
     },
 
-    paragraphExecutedBySpell: function (paragraphId, paragraphTitle,
+    paragraphExecutedBySpell: function(paragraphId, paragraphTitle,
                                         paragraphText, paragraphResultsMsg,
                                         paragraphStatus, paragraphErrorMessage,
                                         paragraphConfig, paragraphParams,
@@ -172,10 +172,10 @@ function WebsocketMessageService ($rootScope, 
websocketEvents) {
           paragraph: paragraphText,
           results: {
             code: paragraphStatus,
-            msg: paragraphResultsMsg.map(dataWithType => {
-              let serializedData = dataWithType.data
-              return { type: dataWithType.type, data: serializedData, }
-            })
+            msg: paragraphResultsMsg.map((dataWithType) => {
+              let serializedData = dataWithType.data;
+              return {type: dataWithType.type, data: serializedData};
+            }),
           },
           status: paragraphStatus,
           errorMessage: paragraphErrorMessage,
@@ -183,11 +183,11 @@ function WebsocketMessageService ($rootScope, 
websocketEvents) {
           params: paragraphParams,
           dateStarted: paragraphDateStarted,
           dateFinished: paragraphDateFinished,
-        }
-      })
+        },
+      });
     },
 
-    runParagraph: function (paragraphId, paragraphTitle, paragraphData, 
paragraphConfig, paragraphParams) {
+    runParagraph: function(paragraphId, paragraphTitle, paragraphData, 
paragraphConfig, paragraphParams) {
       websocketEvents.sendNewEvent({
         op: 'RUN_PARAGRAPH',
         data: {
@@ -195,45 +195,45 @@ function WebsocketMessageService ($rootScope, 
websocketEvents) {
           title: paragraphTitle,
           paragraph: paragraphData,
           config: paragraphConfig,
-          params: paragraphParams
-        }
-      })
+          params: paragraphParams,
+        },
+      });
     },
 
-    runAllParagraphs: function (noteId, paragraphs) {
+    runAllParagraphs: function(noteId, paragraphs) {
       websocketEvents.sendNewEvent({
         op: 'RUN_ALL_PARAGRAPHS',
         data: {
           noteId: noteId,
-          paragraphs: JSON.stringify(paragraphs)
-        }
-      })
+          paragraphs: JSON.stringify(paragraphs),
+        },
+      });
     },
 
-    removeParagraph: function (paragraphId) {
-      websocketEvents.sendNewEvent({op: 'PARAGRAPH_REMOVE', data: {id: 
paragraphId}})
+    removeParagraph: function(paragraphId) {
+      websocketEvents.sendNewEvent({op: 'PARAGRAPH_REMOVE', data: {id: 
paragraphId}});
     },
 
-    clearParagraphOutput: function (paragraphId) {
-      websocketEvents.sendNewEvent({op: 'PARAGRAPH_CLEAR_OUTPUT', data: {id: 
paragraphId}})
+    clearParagraphOutput: function(paragraphId) {
+      websocketEvents.sendNewEvent({op: 'PARAGRAPH_CLEAR_OUTPUT', data: {id: 
paragraphId}});
     },
 
-    clearAllParagraphOutput: function (noteId) {
-      websocketEvents.sendNewEvent({op: 'PARAGRAPH_CLEAR_ALL_OUTPUT', data: 
{id: noteId}})
+    clearAllParagraphOutput: function(noteId) {
+      websocketEvents.sendNewEvent({op: 'PARAGRAPH_CLEAR_ALL_OUTPUT', data: 
{id: noteId}});
     },
 
-    completion: function (paragraphId, buf, cursor) {
+    completion: function(paragraphId, buf, cursor) {
       websocketEvents.sendNewEvent({
         op: 'COMPLETION',
         data: {
           id: paragraphId,
           buf: buf,
-          cursor: cursor
-        }
-      })
+          cursor: cursor,
+        },
+      });
     },
 
-    commitParagraph: function (paragraphId, paragraphTitle, paragraphData, 
paragraphConfig, paragraphParams, noteId) {
+    commitParagraph: function(paragraphId, paragraphTitle, paragraphData, 
paragraphConfig, paragraphParams, noteId) {
       return websocketEvents.sendNewEvent({
         op: 'COMMIT_PARAGRAPH',
         data: {
@@ -242,132 +242,132 @@ function WebsocketMessageService ($rootScope, 
websocketEvents) {
           title: paragraphTitle,
           paragraph: paragraphData,
           config: paragraphConfig,
-          params: paragraphParams
-        }
-      })
+          params: paragraphParams,
+        },
+      });
     },
 
-    importNote: function (note) {
+    importNote: function(note) {
       websocketEvents.sendNewEvent({
         op: 'IMPORT_NOTE',
         data: {
-          note: note
-        }
-      })
+          note: note,
+        },
+      });
     },
 
-    checkpointNote: function (noteId, commitMessage) {
+    checkpointNote: function(noteId, commitMessage) {
       websocketEvents.sendNewEvent({
         op: 'CHECKPOINT_NOTE',
         data: {
           noteId: noteId,
-          commitMessage: commitMessage
-        }
-      })
+          commitMessage: commitMessage,
+        },
+      });
     },
 
-    setNoteRevision: function (noteId, revisionId) {
+    setNoteRevision: function(noteId, revisionId) {
       websocketEvents.sendNewEvent({
         op: 'SET_NOTE_REVISION',
         data: {
           noteId: noteId,
-          revisionId: revisionId
-        }
-      })
+          revisionId: revisionId,
+        },
+      });
     },
 
-    listRevisionHistory: function (noteId) {
+    listRevisionHistory: function(noteId) {
       websocketEvents.sendNewEvent({
         op: 'LIST_REVISION_HISTORY',
         data: {
-          noteId: noteId
-        }
-      })
+          noteId: noteId,
+        },
+      });
     },
 
-    getNoteByRevision: function (noteId, revisionId) {
+    getNoteByRevision: function(noteId, revisionId) {
       websocketEvents.sendNewEvent({
         op: 'NOTE_REVISION',
         data: {
           noteId: noteId,
-          revisionId: revisionId
-        }
-      })
+          revisionId: revisionId,
+        },
+      });
     },
 
-    getNoteByRevisionForCompare: function (noteId, revisionId, position) {
+    getNoteByRevisionForCompare: function(noteId, revisionId, position) {
       websocketEvents.sendNewEvent({
         op: 'NOTE_REVISION_FOR_COMPARE',
         data: {
           noteId: noteId,
           revisionId: revisionId,
-          position: position
-        }
-      })
+          position: position,
+        },
+      });
     },
 
-    getEditorSetting: function (paragraphId, replName) {
+    getEditorSetting: function(paragraphId, replName) {
       websocketEvents.sendNewEvent({
         op: 'EDITOR_SETTING',
         data: {
           paragraphId: paragraphId,
-          magic: replName
-        }
-      })
+          magic: replName,
+        },
+      });
     },
 
-    isConnected: function () {
-      return websocketEvents.isConnected()
+    isConnected: function() {
+      return websocketEvents.isConnected();
     },
 
-    getJobs: function () {
-      websocketEvents.sendNewEvent({op: 'LIST_NOTE_JOBS'})
+    getJobs: function() {
+      websocketEvents.sendNewEvent({op: 'LIST_NOTE_JOBS'});
     },
 
-    disconnectJobEvent: function () {
-      websocketEvents.sendNewEvent({op: 'UNSUBSCRIBE_UPDATE_NOTE_JOBS'})
+    disconnectJobEvent: function() {
+      websocketEvents.sendNewEvent({op: 'UNSUBSCRIBE_UPDATE_NOTE_JOBS'});
     },
 
-    getUpdateNoteJobsList: function (lastUpdateServerUnixTime) {
+    getUpdateNoteJobsList: function(lastUpdateServerUnixTime) {
       websocketEvents.sendNewEvent(
         {op: 'LIST_UPDATE_NOTE_JOBS', data: {lastUpdateUnixTime: 
lastUpdateServerUnixTime * 1}}
-      )
+      );
     },
 
-    getInterpreterBindings: function (noteId) {
-      websocketEvents.sendNewEvent({op: 'GET_INTERPRETER_BINDINGS', data: 
{noteId: noteId}})
+    getInterpreterBindings: function(noteId) {
+      websocketEvents.sendNewEvent({op: 'GET_INTERPRETER_BINDINGS', data: 
{noteId: noteId}});
     },
 
-    saveInterpreterBindings: function (noteId, selectedSettingIds) {
+    saveInterpreterBindings: function(noteId, selectedSettingIds) {
       websocketEvents.sendNewEvent({op: 'SAVE_INTERPRETER_BINDINGS',
-        data: {noteId: noteId, selectedSettingIds: selectedSettingIds}})
+        data: {noteId: noteId, selectedSettingIds: selectedSettingIds}});
     },
 
-    listConfigurations: function () {
-      websocketEvents.sendNewEvent({op: 'LIST_CONFIGURATIONS'})
+    listConfigurations: function() {
+      websocketEvents.sendNewEvent({op: 'LIST_CONFIGURATIONS'});
     },
 
-    getInterpreterSettings: function () {
-      websocketEvents.sendNewEvent({op: 'GET_INTERPRETER_SETTINGS'})
+    getInterpreterSettings: function() {
+      websocketEvents.sendNewEvent({op: 'GET_INTERPRETER_SETTINGS'});
     },
 
-    saveNoteForms: function (note) {
+    saveNoteForms: function(note) {
       websocketEvents.sendNewEvent({op: 'SAVE_NOTE_FORMS',
         data: {
           noteId: note.id,
-          noteParams: note.noteParams
-        }
-      })
+          noteParams: note.noteParams,
+        },
+      });
     },
 
-    removeNoteForms: function (note, formName) {
+    removeNoteForms: function(note, formName) {
       websocketEvents.sendNewEvent({op: 'REMOVE_NOTE_FORMS',
         data: {
           noteId: note.id,
-          formName: formName
-        }
-      })
-    }
+          formName: formName,
+        },
+      });
+    },
 
-  }
+  };
 }

Reply via email to