Minor fix in the doc

If I run the example as is I get:
```
TypeError: Cannot call method 'getTime' of undefined
```