JS: Safe console.log (cross-browser)