var a=['ss','ss','aa','bb'],b=[],i=0;
for(i;i<a.length;i++){
if(b.indexOf(a[i])==-1){
b.push(a[i]);
}
alert(b)