categories view rewrited on js