Translate Logger from CS to JS