Fixes subcookie example code.

Switched the getSub and the setSub lines of code so that the example will work on the first page load, when the cookies have yet to be set.