Weather station in WeatherData.js code restructured for the hosting purpose