JavaScript Programming/Conditions/Example Code