Basic zoomable, draggable tilemap using Pixi.js
To use jQuery to add the Pixi canvas to a page:
$("#demo").append(Main("", 800, 600));
Replace "" with any path if the sprite resources aren't in the current directory, and 800x600 with the desired size.