add code to mean_median_mode.js and updates test code

 to give only arrays of integers as arguments and allow for the mode method to allow an array of integers for a return