compressing imported app

http://manage.dimagi.com/default.asp?79589#471595

Functions, but has an odd user-facing behavior where the copy/pasted imported app disappears after you press submit.  Is a side effect of removing the uncompressed app data from the form before sending.  It would be more intuitive to leave the app in the form.  Tried playing around with beforeSubmit/beforeSerialize (http://malsup.com/jquery/form/#options-object) but couldn't figure it out.