Added download.js

This downloads json to the user's computer. Also includes broken functions for downloading pngs. The code currently ignores stylesheets, making the picture useless.