Update JSONParse.js

Renamed keyToIndex to indexOf -- much more idiomatic ("principle of least surprise").