Help with tags!

All you need to do is:

$w('#tags').onChange(event => {
$w('#tags').value = [$w('#tags').value.reverse()[0]];
})