modified weather javascript