function consoleProxy(method) {
  	return function () {
  		if (console) {
  			console[method].apply(console, arguments);
  		}
  	};
  }
Returns a function that proxies to the given method name on the globals
console object. The proxy will also detect if the console doesn't exist and
will appropriately no-op. This allows support for IE9, which doesn't have a
console if the developer tools are not open.