Quasimodular forms arising from Jacobi's theta function and special symmetric polynomials