fix console.log calling for non-firebug environments