Check If Number In Array Javascript Function How To Use