javascript type string comparison removed