Bennett earns medal in javelin