Use 'window' instead of a global 'var' for template list in test runner