Fixes issue when outside javascript reloads a view and sync tries to

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