- JavaScript Switch snippet