Fixed slider initialisation bug

Previously, when accessing the "My Profile" page from the timetable, the page would hang if the slider wasn't properly initialised.
removed redundant brackets
Merge pull request #153 from NotBobTheBuilder/issue149

Fix slider initialisation bug