Fixes tiles-indexed-db sample

Closes #197