I have done parsing of JSON only till now.
Sample JS file:
var xyz = "firstname"
var age = 30
details=[["Column1","Column2","Column3",...], [....], [.....] ]
Any pointers will be really helpful.
It's possible to use build in Google Closure Compiler to compile JS.(Build in AEM OOTB)
It's possible to include library in your code to parse JS in any way you prefer.(Custom code)
It's possible to include Chrome driver and run your code via Chrome driver.(Custom code)