If and Else statement in JavaScript - Update to Me

If and Else statement in JavaScript