US close: S&P close to five-year high as global outlook improves