Fix check for localstorage preference of hide-show

John Hann debugged that the look up of the key value was incorrect. This patches it to check the list with an indexOf() check. Verified locally against a Accessing Data with GemFire.