If Else Questions In Javascript