cross browser support for console

cross browser support for console