Javascript Distinct String Array Length