JS to jQuery: dropdowns, tabs, formsBehavior