JavaScript templates converter