Added new updates to JS file

- added end times for events
- fixed namespace issues
- more accurate formatting when events are side-by-side