Move hocr_toggle to own JS document.