Rewrote processmap.js to use JSON files outputted by latest Tiled.