Using $(e).text() instead of e.textContent, fixes #318.