Duel 3

js file was tidied up