node assignment finding mean, median and mode

the usual javascript style is keep brackets on the same line as the keyword they belong to, something like `for(;;) {`