Physics of the javelin toss