Add some console functionality for browsers that don't have console.