Set Unique Values In Array Javascript Length Of Elements