Update fetch.js

saves files as JSON