logger js creation