delete this ) (in the end, see below in red):
function filterData() {
$w("#dataset1").setFilter(wixData.filter().eq('tag2', filter)).then(bindData);
})
And make sure every opening parenthesis has it closing one.