Jquery Check If String Exists In Array Function Java