added js console logging for messages to init.js