docs: Fix typo in $timeline example

- Fixes typo in function used in HTML template