I'm working on putting together a map with about a dozen different layers, each with their own unique fields.  Is there a better way to go about setting up the info templates for each, without just spamming my script with a dozen unique infotemplate variables?  I'm pretty new to Javascript and I feel like there's gotta be a way to do this in a neater way, but I don't yet have the experience to figure it out.