javascript check if variable is not undefined