delay localforage init until after page load