fixed IE8 compatibility issue with console.log.apply (changed to simpler console.log)