Jacobi forms and topological strings