Javascript in keyword returns index for arrays; hence points[pos] is required to display point values.