Javascript client side <form> generator