fix jquery categories and other assorted issues