testing weather json object with javascript