Fix issue with clicking visible socket in socket list

There was an issue where clicking the current (visible) socket in the
left column would cause an error. This was due to how we stored socket IDs.

Socket id is now stored in the anchor as data-socket-id.