another very very basic javascript tutorial app - switch commands.