I think it would be better to just put the INCLUDEJS line in all of the templates that require it. Otherwise this is additional code that needs to be parsed on every single page in phpBB.