A converse theorem for Jacobi cusp forms of degree two