Demo 

Be sure this file is in the same directory as "tile-swapper.js" before opening