Add console.logging to debug IE