javascript var input fix refreshBtn