I agree with you in separate files. However, in this case preferred load all templates in a single js. avoiding excess calls to files on the platform