first version of formhtml.js