jsdebug function.