Get Data From Array Javascript Function How To Use