Gangplank improvements for ajax detection