console reports error for every change because the word count element doesn't exist. see

```
function updateWordCount() {
    var wordCount = document.getElementsByClassName('entry-word-count')[0],
        editorValue = editor.getValue();

    if (editorValue.length) {
        wordCount.innerHTML = editorValue.match(/\S+/g).length + ' words';
    }
}
```