James Webb recorded the birth of a star by looking at the cosmic hourglass