cleaning js logs