add category model, fix voting js