code: function isWatching(fileName) {
      for (var i=0;i<watching.length;i++) {
          if (fileName.endsWith(watching[i])) {
              return true;
          }
      }
      //noinspection RedundantIfStatementJS
      if (fileName.toLowerCase().lastIndexOf("restart.livesync") === (fileName.length - 16)) {
          return true;
      }
      //noinspection RedundantIfStatementJS
      if (fileName.toLowerCase().lastIndexOf("restart.liveedit") === (fileName.length - 16)) {
          return true;
      }
      return false;
  }
docs: isWatching - will respond true if watching this file type.
  @param fileName
  @returns {boolean}