Something that has always bugged me is how unpredictable the setTimeout() method in Javascript is.
setTimeout()
In my experience, the timer is horribly inaccurate in
You could consider using the html5 webaudio clock which uses the system time for better accuracy