Suggested fix:
Add keys to the root array containing calendar id's (CalendarViewController).
Set root variable in calendar.index.php to an array of all roots instead of a single object.
Add calendar id's to the checkboxes.
Compile array of objects to load into fullcalendar, pass to fullcalendar
fullcalendar will glitch when toggling from the sidebar (loading from url) after it's been loaded from embedded javascript objects. Not possible for now.
Root calendars are loaded using HTTP since #76
When the page is loaded
Todo: Load from embedded javascript arrays.
Suggested fix: Add keys to the root array containing calendar id's (CalendarViewController). Set root variable in calendar.index.php to an array of all roots instead of a single object. Add calendar id's to the checkboxes. Compile array of objects to load into fullcalendar, pass to fullcalendar