don't throw error when using console.log in firefox