make "createXMLOutputDIV" an app wide function