a rudimentary debug tool for javascript