update category page and create js file