Experimenting with if/else statements in JavaScript
Reformatted for readability
Reformatted for readability