JS utilities for working with map tiles