modified named function expressions and unused variables to prevent CodeMirror lint failures