selection index form is created using js