Optical Character reader in javascript