Now the danger of this is that Asynchronous feels like you just sent something to the background to happen later on another thread and won’t interfere with anything you want to do. That is not the case. At least within the browser anyway.
Part of the app I’m building requires having a local database. OK, require might be the wrong word as it could be done with HTML local storage, but a database is easier, and more in line with the Android version of the app. Conveniently, both Android and HTML5 WebSQL use SqlLite as the backend database as well, so I don’t even have to worry about differences in syntax (although I already use several db’s, so not a big deal), and should be able to port everything across easily.