Inserting Javascript handler for checkbox selection.