Little js fix when new element is created (for subcategories again)