Extract nested functions into proper methods in application.js
Extract nested functions into proper methods in application.js

rdmpage/ocr-correction,dshorthouse/ocr-correction,dshorthouse/ocr-correction,dshorthouse/ocr-correction,rdmpage/ocr-correction,dshorthouse/ocr-correction,rdmpage/ocr-correction