Added the ability to loop to the ean.js