Working Javascript

Site basically works as needed, with alerts for temperature.