Typescript For Each Item In Array Jquery Ui