Updated token on frontend JS