Applied javascript_debugging_WIP_v.0.3.diff by Yves.