fix map tiling to work with updated enchant.js