added temperature in javascript