using precompiled handlebars template throws error "SCRIPT5007: Unable to get value of the property 'template': object is null or undefined  DeviceTemplate.js, line 2 character 40"