Added Findby category function to the js and index