An exact quantization of Jackiw-Teitelboim gravity