added js to new thermometer, fixed a bug