javascript check if variable not defined