move static declarations out...
neaten and reformat
add method to create lookup
move variables into more local contexts.
refactor to fix bounding boxes and article links
use new edge oder.  Remove email ping from selftest
readd predestroy
Merge pull request #726 from nla/js-fixOcrIngest

Js fix ocr ingest