in javascript, you always need to use 'break' statements at the end of your case statements. look this one up