validate-json.js fixed