added vars in front of private functions in htmlForm.js