Update wsManager.js