Update index.js

flake info and JSONing?