Don't use super global GET but pass the value around instead. Could probably put the callback function into a class, so it has access to the search term when passed via constructor.