Update metronome.js

You can now retrieve the number of subticks.

More resilient methods.