n-dimensional FFT codes for JavaScript