Fixing error logging in Chrome console.