parse js files and save the parsed tree json file