diff --git a/tasks/html.js b/tasks/html.js
index <HASH>..<HASH> 100644
--- a/tasks/html.js
+++ b/tasks/html.js
@@ -107,7 +107,7 @@ function loadData () {
         var dataFile = fs.readFileSync(datapath, 'utf8')
 
         if (ext === '.js') {
-          data[name] = requireFromString(dataFile, datapath).data
+          data[name] = requireFromString(dataFile, datapath).data()
         } else if (ext === '.yml' || ext === '.yaml') {
           data[name] = yaml.safeLoad(dataFile).data
         }
diff --git a/web/data/templates.js b/web/data/templates.js
index <HASH>..<HASH> 100644
--- a/web/data/templates.js
+++ b/web/data/templates.js
@@ -1 +1,3 @@
-exports.data = ['at', 'bt']
+exports.data = function () {
+  return ['at', 'bt']
+}
Module data loaded as function to allow pre-processing