small fixes & js-debug