update switcher example to html5