Make metronome.js object-oriented, remove UI-related functions
Connect the MetronomeController with the metronome