A battle of champions using Javascript