Daniel Jones, Giants agree to long-term contract extension