Wt.js: fix ReferenceError

Field 'reconnectTries' of 'websocket' was used as if it was a var.