update js for detail tabs