Test localforage without define