fix logger for JS console usage