added Stats monitor, js console log wrapper