JavaScript program anaylzer