find charecter(AND,OR) in string and make as array in javascript/jquery : example var string=(Firstname==test1) AND (Lastname==test2) OR (state=Tamilnadu) OR (country=india)

i required output like {AND,OR,OR}