Fixing spacing after adding category javascript