Fixed invoking onChange in select/deselect

In the select/deselect functions, an undefined variable 'checked' is passed as second parameter. I think this should be true/false.