sorry misunderstood your question before as asking if this was ok rather then asking for advice my bad. 
its really up to you what you want to use for a name since these are script tags you could you tag or script or you could use value in the function definition and element for the var. 

Ill let you pick what makes the most sense