esprima js validation
index.js beautified