Move onclick handling of tou checkbox to ujs