Tried using Global variables with the Search

“res.write” returns unable to read property 0 of undefined. I’m really
close to getting this to work i think. Adding global before the
variables name SHOULD allow it to be referenced outside it’s parent
function.