Fix console.log location in Firefox