docs: function moving_average(array, n) {
    var nums = [];
  
    for (i in array) {
      /* If this item in the array is a number */
      if (_.isNumber(array[i])) {
        nums.push(array[i]);
        if (nums.length > n) {
  	nums.splice(0,1); /* Remove the first element of the array */
        }
        /* Take the average of the n items in this array */
        var sum = _.reduce(nums, function(memo, num){ return memo + num; }, 0);
        array[i] = sum/nums.length;
      }
    }
  
    return array;
  }