Upload Getting Max Min Ave Sum with JavaScript