switch some function to jquery for IE support, fix a huge hole in integrity check for updating categories