Php Get Unique Values From Array Javascript Append Function In Java