Create tile-swapper.js