no need for extra var "form" here.
give ID to the form as getting form by index is not the best way