javascript get last element of array

join shbcf.ru