Added category code to categories index
Changed category js to post on categories index