How do I get from $$ \frac {dt} {T} = \frac {dx} {gt} \sqrt { \frac {g} {2h} } $$ to $$ \frac {dt} {T} = \frac {1} {2 \sqrt {hx} } dx $$ where $x(t) = \frac {1} {2} gt^2 $ and $ T = \sqrt { \frac {2h} {g}}$.
I'm currently struggling with Griffiths' Introduction to Quantum Mechanics. This is from a worked example on p.11-12 of the 2nd edition.