Time slots hotfix

Fixed some javascript issues, less of a deal than I thought it was when I first found the bug. Hotfixed it anyway