Fixed: Variable scope in CPSegmentedControl.j

Previously, an errant semicolon resulted in improperly scoped variables in CPSegmentedControl.

This fix removes the semicolon in favour of a comma.

Fixes #2117
Merge pull request #2118 from ahankinson/fix-issue2117

Fixed: Variable scope in CPSegmentedControl.j