give value from options.unit not as string

so it had used just miles and ignored the options.unit value
60: var earthRadius = getEarthRadius(options.unit);