Add global.js for websocket server definition