Added getSpansFromHtml to selection.js.coffee