Adding JavaScript for transferring files via WebSockets