trying to get search to work...

need to learn more about promises.