fixed a javascript bug in index
Merge pull request #196 from YaleSTC/time_slots_hotfix

Time slots hotfix