seems to be just as fast, and maybe I would argue the array method is a bet more terse 
http://jsperf.com/charcode-switch-vs-index-of