added JS to form (mainly select boxes)