update without requirejs

- update without requirejs
- correction for missing tiles in the getTileDataAvailable
- add lastTile variable
Revert "update without requirejs"

This reverts commit e53c218b94cf6ac97538871f29524882fceae848.