Update urlUtil.js

Changes to urlUtils.js with support for re-creation or URL