Finally working in Chrome again.
Use floor for more accurate BPM estimation.