typeahead feature implement in facebook and twitter