preparing the appication to handler .json request as ajax