Fix for browsers where console logging is not permitted