Applied javascript_debugging_WIP_v.0.2.diff by Yves.