Update temperature.js

Add code lines to file