beat detection algorithm: good enough
Separate painting of waveform from painting of overlays.
refactor slicer
add the slicing indexes computing and representation
rename rms.js into math.js
factorize the mean computation into math.js