I have adapted a metronome app based on [this code][1]. I have a working version, which involves an "Apps.js" file to trigger the metronome, and then a "metronome