Fixed support for IE 8

Adding the 'replace' property allows the directive to render in IE 8.