As @isherwood notes, without more detail it's hard to say.
But I would suspect you might want to have whatever does your Javascript city/state decoding push their results into some hidden or uneditable form fields, so they make the round-trip to your server and are available for the next round of TT rendering.