Update ping/pong function with latest variant from swf code
Brute force approach from https://gist.github.com/adammw/7f192694c3ed0b13f1f9