Freebase Suggest is a widget that adds Freebase topic autocomplete to search boxes. The original Javascript implementation can be found here https://developers.google.com/freebase/v1/search-widget.