working on the categories when creating a post
categories in JS are working fine