extended jsscope to cover declared global variables and fixed a minor bug in the diff reports