Added function getFormText and serializeObject