JavaScript URL management library