Update metronome.js

revised the debug_callback function