Fix console.js for IE8

forEach is not present in javascript 1.5 for IE8