move wsUrl variable to app.js