Factored out console messages into messages.js