link checkboxes to javascript and perl