JCS: Define _log2 as debug function, which users can define to console.log