alternative log updating js