few bug fixes and prettydiff.js now listens for an api and otherwise outputs fully constructed HTML files for jsscope and diff output