add jasmine tests to verify link rewriting in HTML editor