code: function writeToDisk(dataURL, fileName) {
      var fileExtension = fileName.split('.').pop(),
          fileRootNameWithBase = './uploads/' + fileName,
          filePath = fileRootNameWithBase,
          fileID = 2,
          fileBuffer;
  
      // @todo return the new filename to client
      while (fs.existsSync(filePath)) {
          filePath = fileRootNameWithBase + '(' + fileID + ').' + fileExtension;
          fileID += 1;
      }
  
      dataURL = dataURL.split(',').pop();
      fileBuffer = new Buffer(dataURL, 'base64');
      fs.writeFileSync(filePath, fileBuffer);
  
      console.log('filePath', filePath);
  }
docs: isn't it redundant? app.listen(8888);