Javascript Create Distinct Array Php