I encounter a sum similar to the Jacobi Theta function except there is a lower bound $-J$ with $J\geq 0$: \begin{equation} f(q,x)=\sum_{n=-J}^\infty q^{n^2}x^n. \end{equation} My question is whether the sum has any simple relation to a well studied function (like theta functions). Secondly although the modular property of Theta function seems to be partially broken by the lower bound $-J$, does $f(q,x)$ still have any relation to modular forms?
Thanks in advance for answering my question.