moved OCR1A calculation from comments to javascript file