for some reason the console.debug was breaking ie