Added mean-med-mode js file

More styling issues with the else, also make sure to indent the console.log line below correctly.