Need to build templates before combining JS (bug 1027126)