Serialize HTML Forms to JavaScript Documents