javascript check if variable is not empty string