fix for ie9 omitting leading slash on pathname