How Selection Statements Javascript