added browser support for precompiled tempaltes