function populate_list() { var books = $("#books_container"); books.html(""); localforage.iterate(function(value, key, i) { if (key.match(/epube-book\.\d{1,}$/)) { Promise.all([ localforage.getItem(key), localforage.getItem(key + ".cover") ]).then(function(results) { var info = results[0]; if (info) { var cover = false; if (results && results[1]) { cover = URL.createObjectURL(results[1]); } var cell = "