hQuery is undefined, as it should be. Add logging at the end to see if it's getting hit.