The shortest alternative for a standalone form could be just 2 script elements: one for pointing to Javascript source, one for embedding XHTML+XForms.