Changes to JS, Index.html, and partials

1. Small refactoring to JS scripts to make it supposedly work faster
2. Changes to index.html under events
3. Change to events partials