Fix consoles in Chrome (fix #46).