log to console the messages received in the javascript app