fixed issue with template and snippet demos not working in chrome