Java Average Array Value Javascript Download