Create a randomly-generated map and export it as JSON for use in Javascript (or any other) games.
Based on Gamedev Tuts and @McFunkypants' Random World Generator. Code on Github.
Note: atm 'export' logs to the console. Press F12 and switch to console to view the map.