JavaScript: Safe console.log usage in all browsers