add console class to log messages to browser console