moved data sending between peers to 1 sec after window end, prepared ajax call