Java See If Array Function In Js W3