Abstract repeated code into its own function: to-comma-string()
Create unique gradient variables instead of constantly overwriting the same var