Added mean-med-mode js file

This is pretty clever, you should probably move the calculation of mid to be near this statement though.