FFT: Added parameter to control the size of the instance and changed indentation of JS version from 2-spaces to 4-spaces