Fix ie8 and root path

Routes.root_path doesn't work with IE8 without this change.