index: remove trailing whitespace
index: don't deamdify `.json` files

They don't parse as valid JavaScript files so esprima
fails when attempting to generate an AST.

Blacklisting `.json` files seems like the easiest approach.