Added option for sending cookies in Ajax