incorporate Metronome(onStopFunction)
add more jasmine tests
rename js onEndedFunction => onEnded
incorporate Metronome(onStopFunction)
add more jasmine tests
rename js onEndedFunction => onEnded