Fix the Basic Tile Server example code

I did not get the code to run properly so I investigated a bit and found some issues with your example code.
These few changes should fix it.

Thanks for the awesome tool.