Get Array Item By Index Javascript Code