String Duality and Enumeration of Curves by Jacobi Forms