fix js for debugger