FFT and convolution test (JavaScript)