Fixed bug of spaces in accordion ids caused by previous changes to job category names.
Changed script to apply changes only to category title variable and not global department key.