Update index.js

Added tv4 JSON validation