DRYed up code by creating 'appendWeatherInfo' function