added functional restoration of checked status and a cross browser compatible test/demo