javascript if variable is not null