Nested If Else In Javascript W3schools