Update metronome.js

revised the callback portion of 'loopage'