added support to Spec for ajax call on directions request