Logging messages into JavaScript console