.delegate() has been deprecated
Instead use :
$( "table" ).on( "click", "td", function() {
$( this ).toggleClass( "chosen" );
});
delegate click is depcreted
$( "table" ).on( "click", "td", function() {
$( this ).toggleClass( "chosen" );
});