Simple WAMP (WebSocket Application Messaging Protocol) Javascript client-side implementation