Photo Contest need (Like Button)

//elements: 1. dynamicDataset; 2. likeButton; 3. likesText (connected to likes field in the dataset)
import wixData from 'wix-data';

export function button1_click(likebutton) {
 // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
 // Add your code for this event here: 

$w.onReady(function () {
    $w("#dynamicDataset").onReady(() => {
 let item = $w("#dynamicDataset").getCurrentItem();
        $w("#likeButton").onClick((event) => {
            $w("#likesText").text = (Number($w("#likesText").text) + 1).toString();
            item.likesUpdate = true;
            wixData.update("photovitory", item).then(() => { $w("#dynamicDataset").refresh();})
        })
    })
});
}

error > #likebutton its not valid selector
error > #likestext its not valid selector

data