Adds javascript snippet for debugger.