console object does not always exist, without console object, calls like console.log() result in an error; we will use dummy console object in case no console exist to fix the problem