remove empty values from string array javascript