fixed javascript requests for checkboxes