javascript if variable is not null or undefined