typeahead.js, localStorage and large json File

I’ve got a JSON file which has a size of 1Mb. I tried to implement typeahead.js with a simple example like this: