Update to work with current master

- Follow recent changes in `MarkdownCell.prototype.render`
- Some cleanup
As a general comment, I suggest the following form... otherwise in some cases (not explicitly in this one, it is a general comment) you will have weird things...
```
if (typeof variable === 'undefined') {
    // variable is undefined
}
```