Javascript for Average and Maximum of 3 Numbers Demonstration