How to get the current quote's grant total value on the frontend checkout page's client side?

My updated solution: