In short, yes, mainly because this script is very specific to this template.  I suppose that we can reference an external .js file, if one is available.