An implementation of a temperature readout in angular.js