Removes JavaScript logic and replaces with template logic to properly render category names