[#266]Fix issue with templates on Firefox
Merge pull request #269 from ryandang/issue266

[#266]Fix issue with templates on Firefox