One big advantage of performing this type of operation on the client side is that it's easier to support variables that might contain content that is dynamic (e.g. available products, geolocation, current date & time, or some specific value about the browser).This could certainly be done on the serv...