The form field gets copied over before any Javascript code is processed because I call the Javascript code towards the end of the body after all HTML is rendered.
I'm guessing it's a refresh issue in Firefox?