Fix connection problems in IE because trimRight() isn't supported
Merge branch 'gh-pages' into text-formatting