JavaScript for Dummies: Example of a Common Mistake With switch