revert changes to tiles.js