Canonical Transformations and the Hamilton-Jacobi Equation