html form templates using javascript