adds quaternion option to getJacobian