Adding Legend Visibility to DataTables Filtering