- added JS for type changes