reset with js value