safetyfy logging statements for all browsers