JavaScript: Console Log Cross-browser Compatibility