parse input file with esprima