Javascript Get First Element From Array Value