Clean up and update the JS functionality for URI/Slugs for content and categories