remove unnecessary comments, move app functions to metronome object, convert js quote marks from double to single