Locally cacheing map tiles using IndexedDB, for offline maps in Firefox OS and other web app systems