only call console.log if its available
// instead of https:// - dynamic ftw!