This version is working with Flask-SocketIO, no CORS problem
initSync function, startup-synchronization with server
New socket-io event to synchronize with starting client
Nothing special, back to previous event-click-action
Few lines to include socket-io support