I am to be using your timeline code on a code quality sensitive project, so I decided I'd attempt to tidy it up a little. jshint reported a few things also which have been fixed as part of the PR (Nothing important really, missing semicolons etc)
I've basically tried to keep the code consistent here, there were a number of places with different code standards so I've tried as best I can to manually unify it.
I am to be using your timeline code on a code quality sensitive project, so I decided I'd attempt to tidy it up a little. jshint reported a few things also which have been fixed as part of the PR (Nothing important really, missing semicolons etc)
I've basically tried to keep the code consistent here, there were a number of places with different code standards so I've tried as best I can to manually unify it.