"Search Using an Input Element" not working

Hi, I am following the procedure as mentioned in the below link but still its not working.
https://support.wix.com/en/article/velo-tutorial-adding-collection-data-search-functionality

Here is my code:

import { local } from ‘wix-storage’ ;

import wixLocation from ‘wix-location’ ;

$w . onReady ( function () {

});

export function searchbutton_click () {

let  word  =  $w ( "#searchBar" ). value ; 

local . setItem ( "searchWord" ,  word ); 

wixLocation . to ( `/results` ); 

}

Link for editor:
https://editor.wix.com/html/editor/web/renderer/edit/edd71e07-8b4e-4289-a782-e8c5bd6569f0?metaSiteId=05a61f34-5a4d-496c-b8c2-745a102c525c

Please help