Wait for ajax working for poltergeist