My JavaScript solution to the Kata Bank OCR