diff --git a/apps/files_external/list.php b/apps/files_external/list.php
index a63475e78e69e608d15857e8eda24a1708edb52d..5be3474cbf228f82e4ada41e1f5596f381dbbff4 100644
--- a/apps/files_external/list.php
+++ b/apps/files_external/list.php
@@ -36,7 +36,7 @@ $tmpl->assign('showgridview', $showgridview && !$isIE);
 /* Load Status Manager */
 \OCP\Util::addStyle('files_external', 'external');
 \OCP\Util::addScript('files_external', 'statusmanager');
-\OCP\Util::addScript('files_external', 'templates.js');
+\OCP\Util::addScript('files_external', 'templates');
 \OCP\Util::addScript('files_external', 'rollingqueue');
 
 OCP\Util::addScript('files_external', 'app');