javascript float to string

link brightness_4 code