Fixes issue when outside javascript reloads a view

Fixes issue #58 when outside javascript reloads a view and sync tries to subscribe to an already subscribed to channel.