I need to load around 5,000 rows down to a web SQL database. I do an AJAX call to get the rows, and then do the following to insert locally. The problem is that when running this on Chrome it works, but on the iPad it doesn't count all the way down to 0. Instead, it skipped a chunk of data.