Javascript Number is converted to a java String with trailing ".0"