Remove template refs in compressed JS