fixed loadTemplates: reload JS if JS exist for correct initialization on template items