Thanks Suyash Singh for your reply. Its really great to learn that my need can be satisfied by your library. Also, your reply was thorough and even more informative than I asked. (you provided js code for moving averages). Thanks for that.
Furhter, may I ask– 1) what js code would be right for having Exponential Moving Averages instead of SMA. 2) I need 5 EMAs. So I think I can pass those many json datasets in the way you have specified. Right?