Fix a Core.template javascript bug where the replacement only applied to the first instance.