Dynamically generate hidden span tags for raty