Fixed js for float numbers