Wrapper of browser console to display log messages in web terminal