Changes on JS file for duel