Fixed behaviour of directive.replace: false to match documentation (currently replaces content instead of appending new content; now appends new content