Javascript Array Get First Element