Improvements to tiler.js