IE8 Support - Provide Object.keys method

I tried running this code in IE8 and the Object.keys method was not
defined. I slapped the polyfill in. I also realized that in cases where
the protocol/auth/hostname/port were missing, extra slashes were
appearing in the template.