made javascript parse max temps as floats