basic working javascript to render new form