Updated code for editor file to utilize new features in express 4