Update datedocket.js

- Tweaked some whitespace
- Renamed some functions