k2js: fix debug logging