Added mean-med-mode js file

if you're going to subtract 1 use `- 1` instead of `-1` it works in this case but it's a bad habit.