Help with FSK Demodulation in JavaScript (or otherwise)

Hi All,

Has anyone had any luck with FSK demodulation using JavaScript? (Or even MATLAB, without tooldboxes or built in functions)

I am in way over my head on my uni thesis and would appreciate any references, comments, suggestions or otherwise.I have been able to perform demodulation in MATLAB but only while using DSP toolbox functions.

I've tried FFT libraries in JS, but haven't been able to implement them corrrectly, I've tried to implement FFT manually with no success.

I think it's down to my timing, but I'm totally lost. I'm now trying to decipher MATLABs bandpass filter function to see if I can implement it in JS.

Again, any suggestions or help would be grealty appreciated. There is obviously a lot more detail required here, but without writing a whole paper here, I will leave it there for now.