<div id="suggestion-search">
  <input
    class="uikit-text-input uikit-text-input--block search-input"
    placeholder="{{ include.placeholder }}"
    type="text">
</div>

<script type="text/javascript">
  document.addEventListener("DOMContentLoaded", function(e) {
    var searchResults = JSON.parse(localStorage.getItem('searchResults'));

    var data = new Bloodhound({
      datumTokenizer: Bloodhound.tokenizers.whitespace,
      queryTokenizer: Bloodhound.tokenizers.whitespace,
      local: searchResults
    });

    $('#suggestion-search .search-input').typeahead({
      hint: true,
      highlight: true,
      minLength: 1
    },
    {
      name: 'data',
      source: data,
    });
  });
</script>

<div id="suggestion-search">
  <input
    class="uikit-text-input uikit-text-input--block search-input"
    placeholder="{{ include.placeholder }}"
    type="text">
</div>

<script type="text/javascript">
  document.addEventListener("DOMContentLoaded", function(e) {
    var data = new Bloodhound({
      datumTokenizer: Bloodhound.tokenizers.whitespace,
      queryTokenizer: Bloodhound.tokenizers.whitespace,
      local: searchResults
    });

    $('#suggestion-search .search-input').typeahead({
      hint: true,
      highlight: true,
      minLength: 1
    },
    {
      name: 'data',
      source: data,
    });
  });
</script>

Read search results data from global
@chambois: Read search results data from global
