Updated the "namedUrl" method to work with IE.
IE seems to have troubles with using "RegExp.$1" variables when in a string.replace context.