Array Get First Element Javascript Value Method