Create temperature.js

The JavaScript to temperature.html