k2js: fix debug logging
js-library: cleanup before build
js-tests: cleanup