Change to switch: http://www.w3schools.com/js/js_switch.asp.  Also in general encompass even single member conditionals bodies in curly braces (it's more readable).