So I think the best way for me to keep my code is to call a function with a dynamic name. For example, I might need to call "productTemplate", "userTemplate", "orderTemplate", etc...
Is this possible with javascript/jquery? Also, is it a performance hit or not so much?