New logic between form and controller. Flexible JS