Move JS methods to a class
Add loading spinner when we load stuff
Do not duplicate date groups
Remove page reload