結果 : get only first two elements of array javascript