Cannot get the results to returned back to my page code function from public .js file function.

@jonatandor35 Thanks for the fast reply and guidance. I have amended the .query() thank you. My validateKey functions takes care of presenting query
upper and lower case issue, I left it out to make it clearer. However my original problem still persist of returning results back to my page code function ? No doubt something else daft I am doing. ?

$w(‘#text1’).text =results.items[0].firstName; //Works fine to here //

return (results) //does not return results to page code?