javascript if variable is not empty