add support for ie8

IE8 doen't support the map function, so using a for
to iterate on the characters allows to use barcoder.js
on IE8.