autorefresh after win or draw js box