Added ability to debug js.