JS debug cleanup