temperature bug fix

No need to convert temp to a float and back before passing - if there
is an error we now deal with it on the JavaScript side.