perf(application.js): Move function creation to the class so it's not recreated on each change
perf(application.js): Move function creation to the class so it's not recreated on each change

conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui,conveyal/scenario-editor,conveyal/scenario-editor