JQuery. Printing incoming messages to the console.