Sound visualization in vanilla javascript