WebSocket: multiplication and division with arrays working