JavaScript utilities for handling urls.