JS styling and creating partial forms