javascript if variable is not defined